Part Number Hot Search : 
063EB 2N390 W45NM60 D5888 SMCJ36A 29F80 06N03LA C68HC71
Product Description
Full Text Search
 

To Download LAN91C100FD-ST Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  smsc lan91c100fd rev. d page 1 revision 1.0 (09-22-08) datasheet lan91c100fd rev. d feast fast ethernet controller with full duplex capability datasheet product features ? dual speed csma/cd engine (10 mbps and 100 mbps) ? compliant with ieee 802.3 100base-t specification ? supports 100base-tx, 100base-t4, and 10base-t physical interfaces ? 32 bit wide data path (into packet buffer memory) ? support for 32 and 16 bit buses ? support for 32, 16 and 8 bit cpu accesses ? synchronous, asynchronous and burst dma interface mode options ? 128 kbyte external memory ? built-in transparent arbitration for slave sequential access architecture ? flat mmu architecture with symmetric transmit and receive structures and queues ? mii (media independent interface) compliant mac-phy interface running at nibble rate ? mii management serial interface ? seven wire interface to 10 mbps endec ? eeprom-based setup ? full duplex capability order number(s): lan91c100-fd for 208-pin qfp package lan91c100-fd-ss for 208-pin qfp lead-free rohs compliant package lan91c100-fd for 208-pin tqfp package lan91c100-fd-st for 208-pin tqfp lead-free rohs compliant package
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 2 smsc lan91c100fd rev. d datasheet 80 arkay drive, hauppauge, ny 11788 (631) 435-6000, fax (631) 273-3123 copyright ? 2008 smsc or its subsidiaries. all rights reserved. circuit diagrams and other information rela ting to smsc products are included as a m eans of illustrating typical applications. consequently, complete information sufficient for c onstruction purposes is not necessarily given. although the information has been checked and is bel ieved to be accurate, no responsibility is assumed for inaccuracies. smsc reserves the right to make changes to specifications and product descriptions at any time without notice. contact your local smsc sales office to obtain the la test specifications before placi ng your product order. the provisi on of this information does not convey to the purchaser of the described semiconductor devic es any licenses under any patent ri ghts or other intellectual p roperty rights of smsc or others. all sales are expressly conditional on your agreement to the terms and conditions of the most recently dated version of smsc's standard terms of sale agreement dated before the date of your order (t he "terms of sale agreement"). the product may contain design def ects or errors known as anomalies which may caus e the product's functions to deviate from publis hed specifications. anomaly sheets are availab le upon request. smsc products are not designed, intended, authorized or warranted for use in any life support or other application where produc t failure could cause or contribute to personal injury or severe property damage. any and all such uses without prior written approval of an officer of smsc and further testing and/or modification will be fully at t he risk of the customer. copies of this do cument or other smsc literature, as wel l as the terms of sale agreement, may be obtained by visiting smsc?s website at http://www .smsc.com. smsc is a registered trademark of standard micros ystems corporation (?smsc?). product names and company names are the trademarks of their respective holders. smsc disclaims and excludes any and a ll warranties, including without limitation any and all implied warranties of merchantability, fitn ess for a particular purpose, title, and against infringement and the like, and any and all warranties arising from any course of dealing or usag e of trade. in no event shall smsc be liable for any direct, incidental, indi rect, special, punitive, or cons equential damages; or for lost data, profits, savings or revenues of any kind; regardless of the form of action, whether based on contract; tort; negligence of smsc or others; strict liability; breach of warranty; or othe rwise; whether or not any remedy of buyer is held to have failed of its essential purpose, and whether or no t smsc has been advised of the possibility of such damages.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 3 revision 1.0 (09-22-08) datasheet table of contents chapter 1 general description ............................................................................................................ .5 chapter 2 pin configuration.............................................................................................................. ... 6 chapter 3 description of pin functions ............................................................................................... 7 chapter 4 functional description....................................................................................................... 15 4.1 description of block........................................................................................................... ................ 15 4.1.1 clock generato r bloc k.......................................................................................................... ..................15 4.2 csma/cd block.................................................................................................................. ........... 15 4.2.1 dma bl ock...................................................................................................................... ........................15 4.2.2 arbiter block .................................................................................................................. .........................15 4.2.3 mmu bl ock ...................................................................................................................... .......................16 4.2.4 biu bl ock...................................................................................................................... ..........................16 4.2.5 mac-phy interf ace bl ock ........................................................................................................ ..............16 4.2.6 mii management inte rface block ................................................................................................. ...........17 4.2.7 serial eeprom interf ace ........................................................................................................ ...............17 chapter 5 data structures and registers .......................................................................................... 19 5.1 packet format in buffer memory ................................................................................................. ..... 19 5.2 typical flow of events for tr ansmit (auto re lease = 0)................................................................... 41 5.3 typical flow of events for tr ansmit (auto re lease = 1)................................................................... 42 5.4 typical flow of ev ents for receive ............................................................................................. ...... 43 5.5 memory part itioning ............................................................................................................ .............. 48 5.6 interrupt ge neration ........................................................................................................... ............... 49 chapter 6 board setup information .................................................................................................. 52 chapter 7 application considerations ............................................................................................... 55 7.1 fast ethernet slave adapter .................................................................................................... ......... 55 7.2 vl local bus 32 bit systems .................................................................................................... ........ 55 7.3 high end isa or non-bu rst eisa ma chines...................................................................................... 58 7.4 eisa 32 bit slaveeisa 32 bit slave............................................................................................. .. 60 chapter 8 operational description .................................................................................................... 63 8.1 maximum guarant eed ratings* .................................................................................................... .... 63 8.2 dc electrical characteristics.................................................................................................. ........... 63 chapter 9 timing diagrams................................................................................................................ 66 chapter 10 package outlines............................................................................................................. 76 list of figures figure 3.1 - lan91c10 0fd block diagr am ......................................................................................... ........................13 figure 3.2 - lan91c10 0fd system diagram ........................................................................................ ......................14 figure 4.1 - lan 91c100fd internal bock di agram with data path.................................................................. ............18 figure 5.1 - data packet format ................................................................................................ ..................................19 figure 5.2 - interr upt structure ............................................................................................... ......................................37 figure 5.3 - interrupt service routine ......................................................................................... .................................44 figure 5.4 - rx intr ........................................................................................................... ........................................45 figure 5.5 - tx intr........................................................................................................... .........................................46 figure 5.6 - txempty intr (assumes auto release opti on selected) ............................................................... .......47 figure 5.7 - drive send a nd allocate routines .................................................................................. ..........................48 figure 5.8 - interrupt generati on for transmit, receive, mmu ................................................................... .................51 figure 6.1 - 64 x 16 serial eepr om map......................................................................................... ..........................54
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 4 smsc lan91c100fd rev. d datasheet figure 7.1 - lan91c10 0fd on vl bus............................................................................................. ..........................57 figure 7.2 - lan91c10 0fd on i sa bus............................................................................................ ...........................59 figure 7.3 - lan91c10 0fd on ei sa bus ........................................................................................... .........................62 figure 9.1 - asynchro nous cycle - nads=0....................................................................................... ..........................66 figure 9.2 - asynchronous cycle - us ing na ds................................................................................... ........................67 figure 9.3 - asynchro nous cycle - nads=0....................................................................................... ..........................68 figure 9.4 - burst writ e cycles - nvlbus=1 ..................................................................................... ..........................69 figure 9.5 - burst read cycles - nvlbus=1 ...................................................................................... .........................70 figure 9.6 - address lat ching for a ll mode s.................................................................................... .............................71 figure 9.7 - synchronous wr ite cycles - nvlbus=0............................................................................... ....................71 figure 9.8 - synchronous read cycle - nvlbus=0................................................................................. ...................72 figure 9.9 - sram interface .................................................................................................... ....................................73 figure 9.10 - endec interface - 10 m bps ........................................................................................ ...........................74 figure 9.11 - m ii interface.................................................................................................... ........................................75 figure 10.1 - 208 pin qfp package outline ...................................................................................... ..........................76 figure 10.2 - 208 pin tq fp package outlines .................................................................................... ........................77 list of tables table 3.1 - lan91c100fd pin requirements 12 table 5.1 - internal i/o space mapping 22 table 7.1 - vl local bus signal connections 55 table 7.2 - high-end isa or non-burs t eisa machines signal connectors 58 table 7.3 - eisa 32 bit slave signal connections 60 table 10.1 - 208 pin qfp package parameters 76 table 10.2 - 208 pin tqfp package outlines 77
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 5 revision 1.0 (09-22-08) datasheet chapter 1 general description the lan91c100fd is designed to facilitate the impl ementation of first generat ion fast ethernet adapters and connectivity products. for this first generation of products, flexibility dominat es over integration. the lan91c100fd is a digital device that implements t he mac portion of the csma/cd protocol at 10 and 100 mbps, and couples it with a lean and fast data and control path system architecture to ensure the cpu to packet ram data movement does not cause a bottleneck at 100 mbps. total memory size is 128 kbytes, equivalent to a total chip storage (transmit plus receive) of 64 outstanding packets. the lan91c100fd is software compatible with the lan9000 family of products and can use existing lan9000 drivers (odi, ipx, and ndis) in 16 and 32 bit intel x86 based environments. memory management is handled using a unique mmu (memory management unit) architecture and a 32- bit wide data path. this i/o m apped architecture can sustain back-to-ba ck frame transmission and reception for superior data throughput and optimal performance. it also dynamically allocates buffer memory in an efficient buffer utilization scheme, reducing software tasks and relieving the host cpu from performing these housekeeping functions. the total memory size is 128 kbytes (external), equivalent to a total chip storage (transmit and re ceive) of 64 outstanding packets. feast provides a flexible slave interface for easy co nnectivity with industry-standard buses. the bus interface unit (biu) can handle synchronous as well as asynchronous buses, with different signals being used for each one. feast's bus interface supports synchronous buses like the vesa local bus, as well as burst mode dma for eisa environments. asynchronous bus support for isa is supported even though isa cannot sustain 100 mbps traffic. fast ethernet could be adopted for isa-based nodes on the basis of the aggregate traffic benefits. two different interfaces are supported on the network side. the first is a conventional seven wire endec interface that connects to the lan83c694 for 10base-t and coax 10 mbps ethernet networks. the second interface follows the mii (media inde pendent interface) specification draft standard, consisting of 4 bit wide data transfers at the nibble rate. this interface is applicable to 10 mbps or 100 mbps networks. three of the lan91c100fd?s pins are used to interface to the two-line mii serial management protocol. four i/o ports (one input and three output pins) are provided for lan83c694 configuration. the lan91c100fd is based on the lan91c100 feast, f unctional revision g modified to add full duplex capability. also added is a software-controlled option to allow collisions to discard receive packets. previously, the lan91c100 supported a ?diagnostic full duplex? mode. under this mode the transmit packet is looped internally and received by the mac. this mode was enabled using the fduplx bit in the tcr. in order to avoid confusion, the new, br oader full duplex function of the lan91c100fd is designated as switched full duplex, and the tcr bit enabling it is designated as swfdup. when the lan91c100fd is configured for swfdup, it?s transmi t and receive paths will operate independently and some csma/cd functions will be disabl ed. when the controller is not configured for swfdup it will follow the csma/cd protocol.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 6 smsc lan91c100fd rev. d datasheet chapter 2 pin configuration lnk txen xtal1 xtal2 vdd miisel ncsout nrxdisc tx25 vdd rx_er rx_dv ios0 gnd ios1 ios2 rx25 col100 crs100 rxd0 rxd1 rxd2 vdd rxd3 txd0 txd1 vdd txd2 txd3 txen100 nrwe0 gnd rd7 rd6 rd5 rd4 rdmah rd3 rd2 rd1 vdd rd0 rd15 rd14 rd13 gnd rd12 rd11 rd10 gnd eneep eedo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 d8 vdd d9 d10 d11 d12 gnd d13 d14 d15 gnd d16 vdd d17 d18 d19 gnd d20 d21 vdd d22 d23 gnd d24 gnd vdd d25 d26 gnd d27 d28 d29 d30 gnd d31 nrdyrtn nldev vdd nsrdy lclk 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 crs col rxd avdd nc agnd lbk txd gnd rxc mdi txc mdo nfstep auisel aen mclk vdd ndatacs intr3 intr2 intr1 vdd gnd w/nr ncycle reset nvlbus gnd vdd nwr nrd intr0 ardy gnd d0 d1 d2 d3 gnd d4 d5 d6 vdd d7 nbe3 nbe2 nbe1 nbe0 a15 a14 a13 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 lan91c100fd 208 pin pqfp and tqfp 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 eedi eesk eecs rd9 nrwe1 nc rd8 rd23 rd22 rd21 vdd rd20 rd19 gnd rd18 rd17 rd16 rd31 rd30 nc nrwe2 vdd gnd rd29 rd28 rd27 rd26 rd25 rd24 gnd vdd ra2 vdd nrwe3 ra3 ra4 ra12 ra5 ra6 ra13 rcvdma gnd nads ra7 nroe ra11 ra8 ra10 ra9 ra15 ra14 ra16 lan91c100fd 208 pin qfp and tqfp
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 7 revision 1.0 (09-22-08) datasheet chapter 3 description of pin functions pqfp/tqfp pin no. name symbol buffer type description 148-159 address a4-a15 i input. decoded by lan91c100fd to determine access to its registers. 145-147 address a1-a3 i input. used by lan91c100fd for internal register selection. 193 address enable aen i input. used as an address qualifier. address decoding is only enabled when aen is low. 160-163 nbyte enable nbe0- nbe3 i input. used during lan91c100fd register accesses to determine the width of the access and the register(s) being accessed. nbe0-nbe3 are ignored when ndatacs is low (burst accesses) because 32 bit transfers are assumed. 173-170, 168-166, 164, 144, 142-139, 137-135, 133, 131-129, 127, 126, 124, 123, 121, 118, 117, 115-112, 110 data bus d0-d31 i/o24 bidirectional. 32 bit data bus used to access the lan91c100fd?s internal registers. data bus has weak internal pullups. supports direct connection to the system bus without external buffering. for 16 bit systems, only d0-d15 are used. 182 reset reset is input. this input is not considered active unless it is active for at least 100ns to filter narrow glitches. 95 naddress strobe nads is input. for systems that require address latching, the rising edge of nads indicates the latching moment for a1-a15 and aen. all lan91c100fd internal functions of a1-a15, aen are latched except for nldev decoding. 183 ncycle ncycle i input. this active low signal is used to control lan91c100fd eisa burst mode synchronous bus cycles. 184 write/ nread w/nr is input. defines the direction of synchronous cycles. write cycles when high, read cycles when low. 181 nvl bus access nvlbus i with pullup input. when low, the lan91c100fd synchronous bus interface is configured for vl bus accesses. otherwise, the lan91c100fd is configured for eisa dma burst accesses. does not affect the asynchronous bus interface. 105 local bus clock lclk i input. used to interface synchronous buses. maximum frequency is 50 mhz. limited to 8.33 mhz for eisa dma burst mode.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 8 smsc lan91c100fd rev. d datasheet pqfp/tqfp pin no. name symbol buffer type description 175 asynchron- ous ready ardy od16 open drain output. ardy may be used when interfacing asynchronous buses to extend accesses. its rising (acce ss completion) edge is controlled by the xtal1 clock and, therefore, asynchronous to the host cpu or bus clock. 106 nsynchron - ous ready nsrdy o16 output. this output is used when interfacing synchronous buses and nvlbus=0 to extend accesses. this signal re mains normally inactive, and its falling edge indicates completion. this signal is synchronous to the bus clock lclk. 109 nready return nrdyrtn i input. this input is used to complete synchronous read cycles. in eisa burst mode it is sampled on falling lclk edges, and synchronous cycles are delayed until it is sampled high. 176, 187-189 interrupt intr0- intr3 o24 outputs. only one of t hese interrupts is selected to be used; the other thr ee are tri-stated. the selection is determined by the value of int sel 1-0 bits in the configuration register. 108 nlocal device nldev o16 output. this active low output is asserted when aen is low and a4-a15 decode to the lan91c100fd address programmed into the high byte of the base address register. nldev is a combinatorial decode of unlatched address and aen signals. 177 nread strobe nrd is input. used in asynchronous bus interfaces. 178 nwrite strobe nwr is input. used in asynchronous bus interfaces. 190 ndata path chip select ndatacs i with pullup input. when ndatacs is low, the data path can be accessed regardless of the values of aen, a1-a15 and the content of the bank select register. ndatacs provides an interface for bursting to and from the lan91c100fd 32 bits at a time. 54 eeprom clock eesk o4 output. 4 sec clock used to shift data in and out of the serial eeprom. 55 eeprom select eecs o4 output. serial eeprom chip select. used for selection and command framing of the serial eeprom. 52 eeprom data out eedo o4 output. connected to the di input of the serial eeprom. 53 eeprom data in eedi i with pulldown input. connected to the do output of the serial eeprom. 13, 15, 16 i/o base ios0- ios2 i with pullup input. external switches can be connected to these lines to select between predefined eeprom configurations. 51 enable eeprom eneep i with pullup input. enables (when high or open) lan91c100fd accesses to the serial eeprom. must be grounded if no eeprom is connected to the lan91c100fd.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 9 revision 1.0 (09-22-08) datasheet pqfp/tqfp pin no. name symbol buffer type description 42, 40-38, 36-33 ram data bus rd0-rd7 i/o4 with pullups bidirectional. carries the local buffer memory read and write data. reads are always 32 bits wide. writes are controlled individually at the byte level. floated if fltst=1 during receive frame status word writes for packet forwarding information (ra2-ra16=0, rcvdma=1, nrwe0-nrwe3=0). 59, 56, 49-47, 45-43, 69-67, 65, 64, 62-60, 81-76, 71, 70 ram data bus rd8- rd31 i/o4 with pullups bidirectional. carries the local buffer memory read and write data. reads are always 32 bits wide. writes are controlled individually at the byte level. 84, 87, 88, 90, 91, 96, 99, 101, 100, 98, 89, 92, 103, 102, 104 ram address bus ra2-ra16 o4 outputs. this bus specifies the buffer ram doubleword being accessed by the lan91c100fd. 97 nroe o4 output. active low signal used to read a doubleword from buffer ram. 31, 57, 73, 86 nrwe0- rwe3 o4 outputs. active low signals used to write any byte, word or dword in ram. 93 receive dma rcvdma o4 output. this pin is active during lan91c100fd write memory cycles of receive packets. 3 4 crystal 1 crystal 2 xtal1 xtal2 iclk an external 25 mhz crystal is connected across these pins. if a ttl clock is supplied instead, it should be connected to xtal1 and xtal2 should be left open. 5, 10, 23, 27, 41, 63, 74, 83, 85, 107, 119, 125, 132, 143, 165, 179, 186, 191 power vdd +5v power supply pins. 205 analog power avdd +5v analog power supply pins. 14, 32, 46, 50, 66, 75, 82, 94, 111, 116, 120, 122, 128, 134, 138, 169, 174, 180, 185, 200 ground gnd ground pins. 203 analog ground agnd analog ground pin. 2 transmit enable txen o4 output. used for 10 mbps endec. this pin stays low when miisel is high.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 10 smsc lan91c100fd rev. d datasheet pqfp/tqfp pin no. name symbol buffer type description 201 transmit data txd o4 output. nrz transmit data for 10 mbps endec interface. 208 carrier sense crs i with pulldown input. carrier sense from 10 mbps endec interface. this pin is ignored when miisel is high. 207 collision detect col i with pulldown input. collision detection indication from 10 mbps endec interface. this pin is ignored when miisel is high. 206 receive data rxd i with pullup input. nrz receive data from 10 mbps endec interface. this pin is ignored when miisel is high. 197 transmit clock txc i with pullup input. 10 mhz transmit clock used in 10 mbps operation. this pin is ignored when miisel is high. 199 receive clock rxc i with pullup input. 10 mhz receive clock recovered by the 10 mbps endec. this pin is ignored when miisel is high. 202 loopback lbk o4 output. active when loop bit is set (tcr bit 1). independent of port selection (miisel=x). 1 nlink status nlnk i with pullup input. general purpose input port used to convey link status (ephsr bit 14). independent of port selection (miisel=x). 195 nfullstep nfstep o4 output. non volatile output pin. driven by inverse of fullstep (config bit 10). independent of port selection (miisel=x). 6 mii select miisel o4 output. non volatile output pin. driven by mii select (config bit 15). high indicates the mii port is selected, low indicates the 10 mbps endec is selected. 194 aui select auisel o4 output. non volatile output pin. driven by aui select (config bit 8). independent of port selection (miisel= x). 30 transmit enable 100 mbps txen100 o12 output to mii phy. envelope to 100 mbps transmission. this pin stays low if miisel is low. 19 carrier sense 100 mbps crs100 i with pulldown input from mii phy. envelope of packet reception used for deferral and backoff purposes. this pin is ignored when miisel is low. 12 receive data valid rx_dv i with pulldown input from mii phy. envelope of data valid reception. used for receive data framing. this pin is ignored when miisel is low. 18 collision detect 100 mbps col100 i with pulldown input from mii phy. collision detection input. this pin is ignored when miisel is low. 25, 26, 28, 29 transmit data txd0- txd3 o12 outputs. transmit da ta nibble to mii phy. 9 transmit clock tx25 i with pullup input. transmit clock input from mii. nibble rate clock (25 mhz). this pin is ignored when miisel is low. 17 receive clock rx25 i with pullup input. receive clock inpu t from mii phy. nibble rate clock. this pin is ignored when miisel is low.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 11 revision 1.0 (09-22-08) datasheet pqfp/tqfp pin no. name symbol buffer type description 20, 21, 22, 24 receive data rxd0- rxd3 i inputs. received data nibble from mii phy. these pins are ignored when miisel is low. 198 manage- ment data input mdi i with pulldown mii management data input. 196 manage- ment data output mdo o4 mii management data output. 192 manage- ment clock mclk o4 mii management clock. 11 receive error rx_er i with pulldown input. indicates a code error detected by phy. used by the lan91c100fd to discard the packet being received. the error indication reported for this event is the same as a bad crc (receive status word bit 13). this pin is ignored when miisel is low. 7 nchip select output ncsout o4 output. chip select provided for mapping of phy functions into lan91c100fd decoded space. active on accesses to lan91c100fd?s eight lower addresses when the bank selected is 7. 8 nreceive packet discard nrxdisc i with pullup input. used to discard the receive packet being stored in memory. assertion of the pin during a packet reception results in the interruption of packet reception into memory. the memory allocated to the packet and the packet number in use are freed. the input is driven asynchronously and is synchronized internally by the lan91c100fd. pin assertion may take place at any time during the receive dma packet. the assertion has no effect if there is no packet being dmaed to memory or if asserted during the last dma write to memory. works for both mii and endec. the typical use of nrxdisc is with the lan91c100fd in prms mode with an external associative memory use for address filtering. *note: the pin must be asserted for a minimum of 80ns. 37 rdmah o4 output. active when the first dword of the address is written (rcvdma=1, ra10-ra4=0, ra3-ra2=x). buffer types o4 output buffer with 2ma source and 4ma sink o12 output buffer with 6ma source and 12ma sink o16 output buffer with 8ma source and 16ma sink o24 output buffer with 12ma source and 24ma sink od16 open drain buffer with 16ma sink
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 12 smsc lan91c100fd rev. d datasheet i/o4 bidirectional buffer with 2ma source and 4ma sink i/o24 bidirectional buffer with 12ma source and 24ma sink i input buffer with ttl levels is input buffer with schmitt trigger hysteresis iclk clock input buffer dc levels and conditions defined in the dc electrical characteristics section. table 3.1 - lan91c100fd pin requirements function pin symbols number of pins system address bus a1-a15, aen, nbe0-nbe3 20 system data bus d0-d31 32 system control bus reset, nads, lclk, ardy, nrdyrtn, nsrdy, intr0- intr3, nldev, nrd, nwr, ndatacs, ncycle, w/nr, nvlbus 17 serial eeprom eedi, eedo, eecs, eesk, eneep, ios0-ios2 8 ram data bus rd0-rd31 32 ram address bus ra2-ra16 15 ram control bus nroe, nrwe0-nrwe3, rcvdma, rdmah 7 crystal oscillator xtal1, xtal2 2 power vdd, avdd 19 ground gnd, agnd 21 external endec 10 mbps txen, txd, crs, col, rxd, txc, rxc, lbk, nlnk, nfstep, auisel, miisel 12 physical interface 100 mbps txen100, crs100, col100, rx_dv, rx_er, txd0-txd3, rxd0-rxd3, mdi, mdo, mclk 16 clocks tx25, rx25 2 miscellaneous ncsout, nrxdisc 2 total 205
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 13 revision 1.0 (09-22-08) datasheet figure 3.1 - lan91c100fd block diagram bus interface unit a rbiter memory management unit direct memory access media a ccess control seri a l eeprom rd fifo w r fifo address data control ram 25 mhz 10 mb interface 100 media independent interface
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 14 smsc lan91c100fd rev. d datasheet figure 3.2 - lan91c100fd system diagram a ddress control data a ddress control data system bus serial eeprom 1o mbps mii rd0-31 oe,we ra sram 32kx8 1 2 3 4 lan91c100fd feast lan83c69 10base-t interface 10base-t 100base-t4 interface chip 100base-t4 100base-t x interface logic/ 10base-t 100base-tx/ 10base-t or
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 15 revision 1.0 (09-22-08) datasheet chapter 4 functional description 4.1 description of block 4.1.1 clock generator block 1. the xtal1 and xtal2 pins are to be connected to a 25 mhz crystal. 2. txclk and rxclk are 10 mhz clock inputs. thes e clocks are generated by the external endec in 10 mbps mode and are only used by the csma/cd block. 3. tx25 is an input clock. it will be the nibble rate of the particular phy connected to the mii (2.5 mhz for a 10 mbps phy, and 25 mhz for a 100 mbps phy). 4. rx25 - this is the mii nibble rate receive cl ock used for sampling received data nibbles and running the receive state machine. (2.5 mhz for a 10 mbps phy, and 25 mhz for a 100 mbps phy). 5. lclk - bus clock - used by the biu for synchronous accesses. maximum frequency is 50 mhz for vl bus mode, and 8.33 mhz for eisa slave dma. 4.2 csma/cd block this is a 16 bit oriented block, with fully- independe nt transmit and receive logic. the data path in and out of the block consists of two 16-bit wide uni-direct ional fifos interfacing the dma block. the dma port of the fifo stores 32 bits to exploit the 32 bit data pat h into memory, but the fifos themselves are 16 bit wide. the control path consists of a set of registers interfaced to the cpu via the biu. 4.2.1 dma block this block accesses packet memory on the csma/cd?s behalf, fetching transmit data and storing received data. it interfaces the csma/cd transmit and receive fifos on one side, and the arbiter block on the other. to increase the bandwidth into memory, a 50 mh z clock is used by the dma block, and the data path is 32 bits wide. for example, during active reception at 100 mbps, t he csma/cd block will write a word into the receive fifo every 160ns. the dma will read the fifo and accumulate two words on the output port to request a memory cycle from the arbiter every 320ns. dma will discard a packet if nrxdisc is asserted for a minimum of 80ns during a reception. if asserted late, the dma will receive the packet normally. the nrxdisc is defined valid for the dma interface for as long as the rcvdma signal is active. the dma machine is able to support full duplex oper ation. independent receive and transmit counters are used. transmit and receive cycles are alternated when simultaneous receive and transmit accesses are needed. 4.2.2 arbiter block the arbiter block sequences accesses to packet ram requested by the biu and by the dma blocks. biu requests represent pipelined cpu accesses to the data register, while dma requests represent csma/cd data movement. the external memory used is a 25ns sram.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 16 smsc lan91c100fd rev. d datasheet the arbiter is also responsible for controlling the nrwe0-nrwe3 lines as a function of the bytes being written. read accesses are always 32 bit wide, a nd the arbiter steers the appropriate byte(s) to the appropriate lanes as a function of the address. the cpu data path consists of two uni-directional fifos mapped at the data register location. these fifos can be accessed in any combination of bytes, wo rd, or doublewords. the arbiter will indicate 'not ready' whenever a cycle is initiated that cannot be satisfied by the present state of the fifo. 4.2.3 mmu block the hardware memory management unit allocates memory and transmit and receive packet queues. it also determines the value of the transmit and receive interrupts as a function of the queues. the page size is 2k, with a maximum memory size of 128k. mir and mcr values are interpreted in 512 byte units. 4.2.4 biu block the bus interface unit can handle synchronous as well as asynchronous buses; different signals are used for each one. transparent latches are added on t he address path using rising nads for latching. when working with an asynchronous bus like isa, t he read and write operations are controlled by the edges of nrd and nwr. ardy is used fo r notifying the system that it sh ould extend the access cycle. the leading edge of ardy is generated by the leading edge of nrd or nwr while the trailing edge of ardy is controlled by the internal lan91c100fd clock and, therefore, asynchronous to the bus. in the synchronous vl bus type mode, ncycle and lclk are used to for read and write operations. completion of the cycle may be determined by using nsrdy. nsrdy is controlled by lclk and synchronous to the bus. direct 32 bit access to the data path is supported by using the ndatacs input. by asserting ndatacs, external dma type of devices will bypass the biu a ddress decoders and can sequentially access memory with no cpu intervention. ndatacs accesses can be used in the eisa dma burst mode (nvlbus=1) or in asynchronous cycles. these cycles must be 32 bit cycles. please refer to the corresponding timing diagrams for details on these cycles. the biu is implemented using the following principles: 4.2.5 mac-phy interface block two separate interfaces are defined, one for the 10 m bps bit rate interface and one for the mii 100 mbps and 10 mbps nibble rate interface. the 10 mbps endec interface comprises the signals used for interfacing ethernet endecs. the 100 mbps inte rface follows the mii for 100 mbps 802.3 networks proposal, and it is based on transferring nibbles between the mac and the phy. for the mii interface, transmit data is clocked out using the tx25 clock input, while receive data is clocked in using rx25. in 100 mbps mode, the lan91c100fd provides t he following interface signals to the phy: ? for transmission: txen100 txd0-3 tx25 ? for reception: rx_dv rx_er rxd0-3 rx25 ? for csma/cd state machines: crs100 col100 a transmission begins by txen100 going active (high), and txd0-txd3 having the first valid preamble nibble. txd0 carries the least significant bit of the nibb le (that is the one that would go first out of the eph
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 17 revision 1.0 (09-22-08) datasheet at 100 mbps), while txd3 carries the most signifi cant bit of the nibble. txen100 and txd0-txd3 are clocked by the lan91c100fd using tx25 rising edges . txen100 goes inactive at the end of the packet on the last nibble of the crc. during a transmission, col100 might become active to indicate a collision. col100 is asynchronous to the lan91c100fd?s clocks and will be synchronized internally to tx25. reception begins when rx_dv (receive data valid) is asserted. a preamble pattern or flag octet will be present at rxd0-rxd3 when rx_dv is activated. the lan91c100fd requires no training sequence beyond a full flag octet for reception. rx_dv as well as rxd0-rxd3 are sampled on rx25 rising edges. rxd0 carries the least significant bit and rxd3 the most significant bit of the nibble. rx_dv goes inactive when the last valid nibble of the pa cket (crc) is presented at rxd0-rxd3. rx_er might be asserted during packet reception to signal the lan91c100fd that the present receive packet is invalid. the lan91c100fd will discard the packet by treating it as a crc error. when miisel=1, rxd0-rxd3 should always be aligned to packet nibbles, therefore, opening flag detection does not consider misaligned cases. opening flag detection expects the 5dh pattern and will not reject the packet on non-preamble patterns. when miisel=0 the opening flag detection expects a "10101011" pattern and will use it for determining nibble alignment. crs100 is used as a frame envelope signal for t he csma/cd mac state machines (deferral and backoff functions), but it is not used for receive framing func tions. crs100 is an asynchronous signal and it will be active whenever there is activity on the cable, including lan91c100fd transmissions and collisions. switching between the endec and mii interfaces is controlled by the mii select bit in the config register. the miisel pin reflects the value of this bit and may be used to control external multiplexing logic. note that given the modul ar nature of the mii, tx25 and rx25 c annot be assumed to be free running clocks. the lan91c100fd will not rely on the presence of tx25 and rx25 during reset and will use its own internal clock whenever a timeout on tx25 is detected. 4.2.6 mii management interface block phy management through the mii management interfac e is supported by the lan91c100fd by providing the means to drive a tri-statable data output, a clock, and reading an input. timing and framing for each management command is to be generated by the cpu. 4.2.7 serial eeprom interface this block is responsible for reading the serial eeprom upon hardware reset (or equivale nt command) and defining defaults for some key registers. a write o peration is also implemented by this block, that under cpu command will program s pecific locations in the eeprom. th is block is an autonomous state machine and controls the internal data bus of the lan91c100fd during active operation.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 18 smsc lan91c100fd rev. d datasheet figure 4.1 - lan91c100fd internal bock diagram with data path bus interface arbiter mmu buffer ram csma/cd data bus address bus control eeprom eeprom write data reg read data reg tx fifo tx compl fifo rx fifo dma interface address data transmit receive
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 19 revision 1.0 (09-22-08) datasheet chapter 5 data structures and registers 5.1 packet format in buffer memory the packet format in memory is similar for the transmi t and receive areas. the first word is reserved for the status word. the next word is used to specify the to tal number of bytes, and it is followed by the data area. the data area holds the packet itself. figure 5.1 - data packet format transmit packet receive packet status word written by csma upon transmit completion (see status register) written by csma upon receive completion (see rx frame status word) byte count written by cpu written by csma data area written/modified by cpu written by csma control byte written by cpu to control odd/even data bytes written by csma; also has odd/even bit byte count - divided by two, it defines the tota l number of words including the status word, the byte count word, the data area and the control byte. the receive byte count always appears as even; the oddfrm bit of the receive status word indicates if the low byte of the last word is relevant. bit15 bit0 ram offset (decimal) 0 2 4 2046 max status word reserved byte count data area control byte last data byte if odd ~~ ~~ ~~ ~~
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 20 smsc lan91c100fd rev. d datasheet the transmit byte count least significant bit will be as sumed 0 by the controller regardless of the value written in memory. data area - the data area starts at offset 4 of the packet structur e and can extend up to 2043 bytes. the data area contains six bytes of destinat ion address followed by six bytes of source address, followed by a variable-length number of bytes. on transmit, all bytes are provided by the cpu, including the source address. the lan91c100f d does not insert its own source address. on receive, all bytes are provided by the csma side. the 802.3 frame length word (frame type in etherne t) is not interpreted by the lan91c100fd. it is treated transparently as data both fo r transmit and receive operations. control byte - for transmit packets the co ntrol byte is written by the cpu as: x x odd crc 0 0 0 0 odd - if set, indicates an odd number of bytes, with the last byte being right before the control byte. if clear, the number of data bytes is even and the by te before the control by te is not transmitted. crc - when set, crc will be appended to the frame. this bit has only meaning if the nocrc bit in the tcr is set. for receive packets the control byte is written by the controller as: 0 1 odd 0 0 0 0 0 odd - if set, indicates an odd number of bytes, with the last byte being right before the control byte. if clear, the number of data bytes is even and the by te before the control byte should be ignored. receive frame status wordre ceive frame status word this word is written at the beginning of each receiv e frame in memory. it is not available as a register. high byte algn err brod cast bad crc odd frm toolng too short low byte hash value mult cast 5 4 3 2 1 0
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 21 revision 1.0 (09-22-08) datasheet algnerr - frame had alignment error. when mii sel=1 alignment error is set when badcrc=1 and an odd number of nibbles was received between sfd and rx_dv going inactive. when mii sel=0 alignment error is set when badcrc=1 and the number of bits received between sfd and the crs going inactive is not an octet multiple. brodcast - receive frame was broadcast. badcrc - frame had crc error, or rx_er was asserted during reception. oddfrm - this bit when set indicates that t he received frame had an odd number of bytes. toolng - frame length was longer than 802.3 maximum size (1518 bytes on the cable). tooshort - frame length was shorter than 802.3 minimum size (64 bytes on the cable). hash value - provides the hash value used to index the multicast registers. can be used by receive routines to speed up the group address search. the has h value consists of the six most significant bits of the crc calculated on the destination address, and maps into the 64 bit mu lticast table. bits 5,4,3 of the hash value select a byte of the multicast table, while bits 2,1,0 determine the bit within the byte selected. examples of the address mapping: address hash value 5-0 multicast table bit ed 00 00 00 00 00 0d 00 00 00 00 00 01 00 00 00 00 00 2f 00 00 00 00 00 000 000 010 000 100 111 111 111 mt-0 bit 0 mt-2 bit 0 mt-4 bit 7 mt-7 bit 7 multcast - receive frame was multicast. if hash value corresponds to a multicast table bit that is set, and the address was a multicast, the packet will pass addre ss filtering regardless of other filtering criteria. i/o space the base i/o space is determined by the ios0-ios2 inputs and the eeprom contents. to limit the i/o space requirements to 16 locations, the registers are assigned to different banks. the last word of the i/o area is shared by all banks and can be used to change the bank in use. registers are described using the following convention: offset name type symbol high byte bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 x x x x x x x x low byte bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 x x x x x x x x offset - defines the address offset within the io base where the register can be accessed at, provided the bank select has the appropriate value. the offset specifies the address of the even byte (bits 0-7) or the address of the complete word. the odd byte can be accessed using address (offset + 1). some registers (like the interrupt ack., or like interrupt mask) are functionally described as two eight bit registers, in that case the offset of each one is independently specified. regardless of the functional description, all registers can be accessed as doublewords, words or bytes.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 22 smsc lan91c100fd rev. d datasheet the default bit values upon hard reset are highlighted below each register. table 5.1 - internal i/o space mapping bank0 bank1 bank2 bank3 0 tcr config mmu command mt0-1 2 eph status base pnr arr mt2-3 4 rcr ia0-1 fifo ports mt4-5 6 counter ia2-3 pointer mt6-7 8 mir ia4-5 data mgmt a mcr general purpose data revision c reserved (0) control interrupt rcv e bank select bank select bank select bank select a special bank (bank7) exists to support the addition of external registers. bank select register offset name type symbol e bank select register read/write bsr high byte 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 low byte bs2 bs1 bs0 x x x x x 0 0 0 bs2, bs1, bs0 determine the bank presently in use. this register is always accessible and is used to select the register bank in use. the upper byte always reads as 33h and can be used to help determine the i/o location of the lan91c100fd. the bank select register is always acce ssible regardless of the value of bs0-2. note : the bank select register can be accessed as a doubleword at offset ch, as a word at offset eh, or as at offset fh, however a doubleword write to offset ch will write the bank select register but will not write the registers ch and dh. bank 7 has no internal registers other than the ban k select register itself. on valid cycles where bank7 is selected (bs0=bs1=bs2=1), and a3=0, ncso ut is activated to facilitate implementation of external registers. note : bank7 does not exist in lan91c9x devices. for backward s/w compatibility bank7 accesses should be done if the revision control register in dicates the device is the lan91c100fd.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 23 revision 1.0 (09-22-08) datasheet bank 0 offset name type symbol 0 transmit control register read/write tcr this register holds bits programmed by the cpu to control some of the protocol transmit options. high byte swfdu p 0 eph loop stp sqet fduplx mon_ csn 0 nocrc 0 0 0 0 0 0 0 0 low byte pad_en 0 0 0 0 forcol loop txena 0 0 0 0 0 0 0 0 swfdup - enables switched full duplex mode. in th is mode, transmit state machine is inhibited from recognizing carrier sense, so deferrals will not occur. also inhibits collision count, therefore, the collision related status bits in the ephsr are not valid (ctr_rol, latcol, sqet, 16col, mul col, and sngl col). uses col100 as flow control, limiti ng backoff and jam to 1 clock each before inter-frame gap, then retry will occur after ifg. if col100 is active during preamble, full preamble will be output before jam. when swfdup is high, the values of f duplx and mon_csn have no effect. this bit should be low for non-mii operation. eph_loop - internal loopback at the eph block. serial data is internally looped back when set. defaults low. when eph_loop is high the following transmit outputs are forced inactive: txd0-txd3 = 0h, txen100 = txen = 0, txd = 1. the following a nd external inputs are blocked: crs=crs100=0, col=col100=0, rx _dv= rx_er=0. stp_sqet - stop transmission on sqet error. if set, stops and disables transmitter on sqe test error. does not stop on sqet error and transmits next frame if clear. defaults low. fduplx - when set, the lan91c100fd will cause frames to be received if they pass the address filter regardless of the source of the fr ame. when clear, the node will not receive a frame sourced by itself. this bit does not control the duplex mode operation, the duplex mode operation is controlled by the swfdup bit. mon_csn - when set the lan91c100fd monitors carrier while transmitting. it must see its own carrier by the end of the preamble. if it is not seen, or if carrier is lost dur ing transmission, the transmitter aborts the frame without crc and turns itself off and sets the lost carr bit in the ephsr. when this bit is clear the transmitter ignores its own carrier. defaults low. should be 0 for mii operation. nocrc - does not append crc to transmitted frames when set. allows software to insert the desired crc. defaults to zero, namely crc inserted. pad_en - when set, the lan91c100fd will pad transmit fr ames shorter than 64 bytes with 00. the cpu should write the actual byte count (1 ? 1514/1518) into the byte count area in the transmit buffer ram. if the cpu provides the 4 byte crc, the maximum byte count will be 1518. if the cpu elects to have the lan91c100fd provide the crc, the maximum byte count will be 1514. the cpu should then write the actual packet data in the data area of the trans mit buffer ram. the lan91c100fd will then determine if padding is necessary, (byte count area less then 64). if padding is required, the lan91c100fd will append data bytes of 00 to meet the minimum requirem ent of 64 bytes. when this bit is cleared, the lan91c100fd does not pad frames. forcol - when set, the forcol bit will force a collision by not deferring deliberately. this bit is set and cleared only by the cpu. when txena is enabled with no packets in the queue and while the forcol bit is set, the lan91c100fd will transmit a preamble pattern the next time a carrier is seen on the line. if a packet is queued, a preamble and sfd will be transmitted. this bit defaults low to normal operation. note: the latcol bit in the ephsr, setting up as a result of forcol, will reset txena to 0. in order to force another collision, txena must be set to 1 again.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 24 smsc lan91c100fd rev. d datasheet loop - loopback. general purpose output port used to control the lbk pin. typically used to put the phy chip in loopback mode. txena - transmit enabled when set. transmit is disabled if clear. when the bit is cleared the lan91c100fd will complete the current transmission bef ore stopping. when stopping due to an error, this bit is automatically cleared. bank 0 offset name type symbol 2 eph status register read only ephsr this register stores the status of th e last transmitted frame. this register value, upon individual transmit packet completion, is stored as the first word in the memory area allocated to the packet. pa cket interrupt processing should use the copy in memory as the re gister itself will be updated by subsequent packet transmissions. the register can be used for real time values (like txena and link ok). if txena is cleared the register holds the last packet completion status. high byte reserved link_ ok 0 ctr _rol exc _def lost carr latcol 0 0 -nlnk pin 0 0 0 0 0 0 low byte tx defr ltx brd sqet 16col ltx mult mul col sngl col tx_suc 0 0 0 0 0 0 0 0 link_ok - general purpose input port driven by nlnk pin inverted. typically used for link test. a transition on the value of this bit generates an interrupt. ctr_rol - counter roll over. when set one or more 4 bit counters have reached maximum count (15). cleared by reading the ecr register. exc_def - excessive deferral. when set last/ current transmit was deferred for more than 1518 * 2 byte times. cleared at the end of every packet sent. lost_carr - lost carrier sense. when set indicate s that carrier sense was not present at end of preamble. valid only if mon_csn is enabled. this condition causes txena bit in tcr to be reset. cleared by setting txena bit in tcr. latcol - late collision detected on la st transmit frame. if set a late co llision was detected (later than 64 byte times into the frame). when detected the transmi tter jams and turns itself off clearing the txena bit in tcr. cleared by setting txena in tcr. tx_defr - transmit deferred. when set, carrier was detected during the first 6.4 s of the inter frame gap. cleared at the end of every packet sent. ltx_brd - last transmit frame was a broadcast. set if frame was broadcast. cleared at the start of every transmit frame. sqet - signal quality error test. in mii, sqet bit is always set after first transmit, except if swfdup=1. as a consequence, the stp_sqet bit in the tcr register cannot be set as it will always result in transmit fatal error. in non-mii systems, the transmitter opens a 1.6 s window 0.8 s after transmission is completed and the receiver returns inactive. during th is window, the transmitter expects to see the sqet signal from the transceiver. the absence of this signal is a 'signal quality error' and is reported in this status bit. transmission stops and eph int is set if st p_sqet is in the tcr is also set when sqet is set. this bit is cleared by setting txena high.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 25 revision 1.0 (09-22-08) datasheet 16col - 16 collisions reached. set when 16 collisions are detected for a transmit frame. txena bit in tcr is reset. cleared when txena is set high. ltx_mult - last transmit frame was a multicast. set if frame was a multicast. cleared at the start of every transmit frame. mulcol - multiple collision detected for the last tr ansmit frame. set when more than one collision was experienced. cleared when tx_suc is high at the end of the packet being sent. snglcol - single collision detected for the last transmi t frame. set when a collision is detected. cleared when tx_suc is high at the end of the packet being sent. tx_suc - last transmit was successful. set if transmit co mpletes without a fatal erro r. this bit is cleared by the start of a new frame transmission or when txena is set high. fatal errors are: ? 16 collisions (1/2 duplex mode only) ? sqet fail and stp_sqet = 1 (1/2 duplex mode only) ? carrier lost and mon_csn = 1 (1/2 duplex mode only) ? late collision (1/2 duplex mode only) bank 0 offset name type symbol 4 receive control register read/write rcr high byte soft rst filt car abort_e nb 0 reserved reserved strip crc rxen 0 0 0 0 0 0 0 0 low byte reserved reserved reserved reserved reserved almul prms rx_ abort 0 0 0 0 0 0 0 0 soft_rst - software-activated reset. active high. init iated by writing this bit high and terminated by writing the bit low. the lan91c100fd?s configuration is not preserved except for configuration, base, and ia0-ia5 registers. eeprom is not reloaded after so ftware reset. filt_car - filter carrier. when set filters leading edge of carrier sense for 12 bit times (3 nibble times). otherwise recognizes a receive frame as soon as carrier sense is active. (does not filter rx dv on mii!) abort_enb - enables abort of receive when collision occurs. defaults low. when set, the lan91c100fd will automatically abort a packet being re ceived when the appropriate collision input is activated (col100 for mii, col for non-mii). this bit has no effect if the swfdup bit in the tcr is set. strip_crc - when set it strips the crc on received frames. when clear the crc is stored in memory following the packet. defaults low. rxen - enables the receiver when set. if cleared, completes receiving current frame and then goes idle. defaults low on reset. almul - when set accepts all multicast frames (frame s in which the first bit of da is '1'). when clear accepts only the multicast frames that matc h the multicast table setting. defaults low. prms - promiscuous mode. when set receives all frames. does not receive its own transmission unless it is in full duplex! rx_abort - this bit is set if a receive frame was aborted due to length longer than 2k bytes. the frame will not be received. the bit is cleared by reset or by the cpu writing it low.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 26 smsc lan91c100fd rev. d datasheet reserved - must be 0. bank 0 offset name type symbol 6 counter register read only ecr counts four parameters for mac statistics. when an y counter reaches 15 an interrupt is issued. all counters are cleared when reading the re gister and do not wrap around beyond 15. high byte number of exc. deffered tx number of deffered tx 0 0 0 0 0 0 0 0 low byte multiple collision count single collision count 0 0 0 0 0 0 0 0 each four bit counter is increment ed every time the corresponding event, as defined in the eph status register bit description, occurs. note that the count ers can only increment once per enqueued transmit packet, never faster, limiting the rate of interrupts that can be generated by the counters. for example if a packet is successfully transmitted after one collision the single collision count field is incremented by one. if a packet experiences between 2 to 16 collisions, the multiple collision count field is incremented by one. if a packet experiences deferral the number of deferred tx field is incremented by one, even if the packet experienced multiple deferrals during its collision retries. the counter register facilitates maintaining statistics in the auto release mode where no transmit interrupts are generated on successful transmissions. reading the register in the transmit service routine will be enough to maintain statistics. bank 0 offset name type symbol 8 memory information register read only mir high byte free memory available (in bytes * 256 * m) 1 1 1 1 1 1 1 1 low byte memory size (in bytes *256 * m) 1 1 1 1 1 1 1 1 free memory available - this register can be read at any time to determine the amount of free memory. the register defaults to the memory size upon reset or upon the reset mmu command. memory size - this register can be re ad to determine the total memory size. all memory related information is represented in 256 * m byte units, where the multiplier m is determined by the mcr upper byte. these register default to ffh, whic h should be interpreted as 256.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 27 revision 1.0 (09-22-08) datasheet bank 0 offset name type symbol a memory configuration register lower byte - read/write upper byte - read only mcr high byte memory size multiplier 0 0 1 1 0 1 0 1 low byte memory reserved for transmit (in bytes * 256 * m) 0 0 0 0 0 0 0 0 memory reserved for transmit - programming th is value allows the host cpu to reserve memory to be used later for transmit, limiting the amou nt of memory that receive packets can use. when programmed for zero, the memory allocation between transmit and receive is completely dynamic. when programmed for a non-zero value, the allocation is dynamic if the free memory exceeds the programmed value, while receive allocation requests are denied if the free memory is less or equal to the programmed value. this register defaults to zero upon rese t. it is not affected by the reset mmu command. the value written to the mcr is a reserved memory space in addition to any memory currently in use. if the memory allocated for transmi t plus the reserved space for transmit is required to be constant (rather than grow with transmit allocati ons) the cpu should update the value of this register after allocating or releasing memory. the contents of the mir as well as the low byte of th e mcr are specified in units of 256 * m bytes, where m is the memory size multiplier. m=2 for the lan91c 100fd. a value of 04h in the lower byte of the mcr is equal to one 2k page (4 * 256 *2 = 2k); since memo ry must be reserved in multiples of pages, bits 0 and 1 of the mcr should be written to 1 only when the entire memory is being reserved for transmit (i.e., low byte of mcr = ffh). bank1 offset name type symbol 0 configuration register read/write cr the configuration register holds bits that define t he adapter configuration and ar e not expected to change during run-time. this register is part of the eeprom saved setup. high byte mii select no wait full step 0 aui select 1 0 1 0 0 0 0 0 low byte 1 0 reserved int sel1 int sel0 1 0 1 1 0 0 0 1 mii select - used to select the network interface port. when set, the lan91c100fd will use its mii port and interface a phy device at the nibble rate. when clear, the lan91c100fd will use its 10 mbps endec interface. this bit drives the m ii sel pin. switching between ports should be done with transmitter and receiver disabled and no transmit/receive packets in progress. no wait - when set, does not request additional wait states. an exception to this are accesses to the data register if not ready for a transfer. when clear, negates io chrdy for two to three clocks on any cycle to the lan91c100fd.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 28 smsc lan91c100fd rev. d datasheet full step - this bit is a general purpose output port. its inverse value drives pin nfstep and it is typically connected to sel pin of the lan83c694. it can be used to select the signaling mode for the aui or as a general purpose non-volatile configuration pin. defaults low. aui select - this bit is a general purpose output por t. its value drives pin auisel and it is typically connected to mode1 pi n of the lan83c694. it can be used to se lect aui vs. 10base-t, or as a general purpose non-volatile configuration pin. defaults low. reserved - must be 0. int sel1-0 - used to select one out of four interru pt pins. the three unused interrupts are tristated. int sel1 int sel0 interrupt pin used 0 0 1 1 0 1 0 1 intr0 intr1 intr2 intr3 bank 1 offset name type symbol 2 base address register read/write bar this register holds the i/o addre ss decode option chosen for the lan 91c100fd. it is part of the eeprom saved setup and is not usually modified during run-time. high byte a15 a14 a13 a9 a8 a7 a6 a5 0 0 0 1 1 0 0 0 low byte reserved 1 0 0 0 0 0 0 0 1 a15 - a13 and a9 - a5 - these bits are compared against the i/o address on the bus to determine the iobase for the lan91c100fd?s regist ers. the 64k i/o space is fully decoded by the lan91c100fd down to a 16 location space, therefore the unspeci fied address lines a4, a10, a11 and a12 must be all zeros. all bits in this register are loaded from the serial eeprom. the i/o base decode defaults to 300h (namely, the high byte defaults to 18h). reserved - must be 0. bank 1 offset name type symbol 4 through 9 individual address registers read/write iar these registers are loaded starting at word lo cation 20h of the eeprom upon hardware reset or eeprom reload. the registers can be modified by th e software driver, but a store operation will not modify the eeprom individual address contents. bit 0 of individual address 0 register corresponds to the first bit of the address on the cable.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 29 revision 1.0 (09-22-08) datasheet low byte address 0 0 0 0 0 0 0 0 0 high byte address 1 0 0 0 0 0 0 0 0 low byte address 2 0 0 0 0 0 0 0 0 high byte address 3 0 0 0 0 0 0 0 0 low byte address 4 0 0 0 0 0 0 0 0 high byte address 5 0 0 0 0 0 0 0 0 bank 1 offset name type symbol a general purpose register read/write gpr high byte high data byte 0 0 0 0 0 0 0 0 low byte low data byte 0 0 0 0 0 0 0 0 this register can be used as a way of storing and retrieving non-volatile information in the eeprom to be used by the software driver. the storage is word oriented, and the eeprom word address to be read or written is specified using the six lowe st bits of the pointer register. this register can also be used to sequentially program the individual address area of the eeprom, that is normally protected from accidental store operations. this register will be used for eeprom read and write only when the eeprom select bit in the control register is set. this allows generic eeprom read and wr ite routines that do not affect the basic setup of the lan91c100fd. bank 1 offset name type symbol c control register read/write ctr high byte 0 rcv_ bad 0 1 auto release 0 1 0 0 0 0 1 0 0 1 0 low byte le enable cr enable te enable 1 0 eeprom select reload store 0 0 0 1 0 0 0 0
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 30 smsc lan91c100fd rev. d datasheet rcv_bad - when set, bad crc packets are received. when clear bad crc packets do not generate interrupts and their memory is released. note : nrxdisc, when asserted, overrides rcv_bad. also, rcv_ bad does not modify the function of rcv discard in the rcv register. auto release - when set, transmit pages are released by transmit completion if the transmission was successful (when tx_suc is set). in that case there is no status word associated with its packet number, and successful packet numbers are not even written into the tx completion fifo. a sequence of transmit packets will generate an interrupt only when the sequence is completely transmitted (tx empty int will be set), or when a packet in the sequence experiences a fatal error (tx int will be set). upon a fatal error txena is cleared and the transmission s equence stops. the packet nu mber that failed, is present in the fifo ports register, and its pages are not released, allowing the cpu to restart the sequence after corrective action is taken. le enable - link error enable. when set it enables th e link_ok bit transition as one of the interrupts merged into the eph int bit. clearing the le en able bit after an eph int interrupt, caused by a link_ok transition, will acknowledge the in terrupt. le enable defaults low (disabled). cr enable - counter roll over enable. when set, it enables the ctr_rol bit as one of the interrupts merged into the eph int bit. reading the counter register after an eph int interrupt caused by a counter rollover, will acknowledge the interrupt. cr enable defaults low (disabled). te enable - transmit error enable. when set it enables transmit error as one of the interrupts merged into the eph int bit. an eph int interrupt caused by a transmitter error is acknowledged by setting txena bit in the tcr register to 1 or by clearing the te enable bit. te enable defaults low (disabled). transmit error is any condition that clears txena with tx_suc staying low as described in the ephsr register. eeprom select - this bit allows the cpu to spec ify which registers the eeprom reload or store refers to. when high, the general purpose register is the only register read or written. when low, reload reads configuration, base and individual address, and store writes the configuration and base registers. reload - when set it will read the eeprom and update relevant register s with its contents. clears upon completing the operation. store - when set, stores the contents of all relev ant registers in the serial eeprom. clears upon completing the operation. note: when an eeprom access is in progress the store and reload bits will be read back as high. the remaining 14 bits of this register will be invalid. du ring this time attempted read/write operations, other than polling the eeprom status, will not have any effect on the internal registers. the cpu can resume accesses to the lan91c100fd after both bits are lo w. a worst case reload operation initiated by reset or by software takes less than 750 s. bank2 offset name type symbol 0 mmu command register write only busy bit readable mmucr this register is used by the cpu to control the memo ry allocation, de-allocation, tx fifo and rx fifo control.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 31 revision 1.0 (09-22-08) datasheet the three command bits determine the command issued as described below: high byte low byte command 0 0 n2 n1 n0/busy x y z 0 command set: xyz 000 0) noop - no operation 001 1) allocate memory for tx - n2,n1,n0 defines the amount of memory requested as (value + 1) * 256 bytes. namely n2,n1,n0 = 1 will request 2 * 256 = 512 bytes. a shift-based divide by 256 of the packet length yields the appropriate value to be used as n2,n1,n0. immediately generates a completion code at the allocation result register. can optionally generate an interrupt on successful completion. n2,n1,n0 are ignored by the lan91c100fd but should be implemented in lan91c100fd software drivers for lan9000 compatibility. 010 2) reset mmu to initial state - frees all me mory allocations, clears relevant interrupts, resets packet fifo pointers. 011 3) remove frame from top of rx fifo - to be issued after cpu has completed processing of present receive frame. this command removes the receive packet number from the rx fifo and brings the next receive frame (i f any) to the rx area (output of rx fifo). 100 4) remove and release top of rx fifo - like 3) but also releases all memory used by the packet presently at the rx fifo output. the mmu busy time after issuing remove and release command depends on the time when the busy bit is cleared. the time from issuing remove and release command on the last receive packet to the time when receive fifo is empty depends on rx int bit turning low. an alternate approach can be checking the read rx fifo register. 101 5) release specific packet - frees all pages allocated to the packet specified in the packet number register. should not be used for frames pending transmission. typically used to remove transmitted frames, a fter reading their completion status. can be used following 3) to release receive packet memory in a more flexible way than 4). 110 6) enqueue packet number into tx fifo - this is the normal method of transmitting a packet just loaded into ram. the packet num ber to be enqueued is taken from the packet number register. 111 7) reset tx fifos - this command will reset both tx fifos: the tx fifo holding the packet numbers awaiting transmission and the tx completion fifo. this command provides a mechanism for canceling packet transmissions, and reordering or bypassing the transmit queue. the reset tx fifos command should only be used when the transmitter is disabled. unlike the reset mmu command, the reset tx fifos does not release any memory.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 32 smsc lan91c100fd rev. d datasheet notes: ? bits n2,n1,n0 bits are ignored by the lan91c100fd but should be used for command 0 to preserve software compatibility with the lan91c92 and future devices. they should be zero for all other commands. ? when using the reset tx fifos command, the cpu is responsible for releasing the memory associated with outstanding packets, or re-enqueuing them. packet numbers in the completion fifo can be read via the fifo ports register before is suing the command. ? mmu commands releasing memory (commands 4 and 5) shou ld only be issued if the corresponding packet number has memory allocated to it. command sequencing a second allocate command (command 1) should no t be issued until the present one has completed. completion is determined by reading the failed bit of the allocation result register or through the allocation interrupt. a second release command (commands 4, 5) should not be issued if the previous one is still being processed. the busy bit indicates that a release comm and is in progress. after issuing command 5, the contents of the pnr should not be changed until bu sy goes low. after issuing command 4, command 3 should not be issued until busy goes low. busy bit - readable at bit 0 of t he mmu command register address. when set indicates that mmu is still processing a release command. when clear, mmu has already completed last release command. busy and failed bits are set upon the trailing edge of command. bank 2 offset name type symbol 2 packet number register read/write pnr 0 0 packet number at tx area 0 0 0 0 0 0 0 0 packet number at tx area - the value written into this register determines which packet number is accessible through the tx area. some mmu commands use the number stored in this register as the packet number parameter. this register is cl eared by a reset or a reset mmu command. offset name type symbol 3 allocation result register read only arr this register is updated upon an allocate memory mmu command. failed 0 allocated packet number 1 0 0 0 0 0 0 0 failed - a zero indicates a successful allocation completion. if the allocation fails th e bit is set and only cleared when the pending allocation is satisfied. defaults high upon reset and reset mmu command. for polling purposes, the alloc_int in the interrupt status register should be used because it is synchronized to the read operation. sequence: 1. allocate command 2. poll alloc_int bit until set 3. read allocation result register
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 33 revision 1.0 (09-22-08) datasheet allocated packet number - packet number associated with the last memory allocation request. the value is only valid if the failed bit is clear. note: for software compatibility with future versions, the value read from the arr after an allocation request is intended to be written into the pnr as is, wi thout masking higher bits (provided failed = 0). bank 2 offset name type symbol 4 fifo ports register read only fifo this register provides access to the read ports of the receive fifo and the transmit completion fifo. the packet numbers to be processed by the interrupt service routines are read from this register. high byte rempty 0 rx fifo packet number 1 0 0 0 0 0 0 0 low byte tempty 0 tx done packet number 1 0 0 0 0 0 0 0 rempty - no receive packets queued in the rx fifo. for polling purposes, uses the rcv_int bit in the interrupt status register. top of rx fifo packet number - packet number present ly at the output of the rx fifo. only valid if rempty is clear. the packet is removed from the rx fifo using mmu commands 3) or 4). tempty - no transmit packets in completion queue. for polling purposes, uses the tx_int bit in the interrupt status register. tx done packet number - packet number presently at the output of the tx completion fifo. only valid if tempty is clear. the packet is re moved when a tx int acknowledge is issued. note: for software compatibility with future versions, the val ue read from each fifo register is intended to be written into the pnr as is, without masking higher bits (provided tempty and rempty = 0 respectively). bank 2 offset name type symbol 6 pointer register read/write not empty is a read only bit ptr high byte rcv auto incr. read reserved not empty pointer high 0 0 0 0 0 0 0 0 low byte pointer low 0 0 0 0 0 0 0 0 pointer register - the value of this register de termines the address to be accessed within the transmit or receive areas. it will auto-increment on acce sses to the data register when auto incr. is set. the increment is by one for every byte access, by two for every word access, and by four for every double word access. when rcv is set the address refers to t he receive area and uses the output of rx fifo as the packet number, when rcv is clear the address refe rs to the transmit area and uses the packet number at the packet number register.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 34 smsc lan91c100fd rev. d datasheet read - determines the type of access to follow. if the read bit is high the operation intended is a read. if the read bit is low the operation is a write. loading a new pointer value, with the read bit high, generates a pre-fetch into the data register for read purposes. readback of the pointer will indicate the value of th e address last accessed by the cpu (rather than the last pre-fetched). this allows any in terrupt routine that uses the pointer, to save it and restore it without affecting the process being interrupted. the pointer register should not be loaded until the data register fifo is empty. the not empty bit of this register can be read to determine if the fifo is empty. on reads, if iochrdy is not connected to the host, the data register should not be read before 370ns after the pointer was loaded to allow the data register fifo to fill. if the pointer is loaded using 8 bit writes, the low byte should be loaded first and the high byte last. reserved ? must be 0. not empty - when set indicates that the write data fi fo is not empty yet. the cpu can verify that the fifo is empty before loading a new pointer value. this is a read only bit. note: if auto incr. is not set, the pointer must be loaded with a dword aligned value. bank 2 offset name type symbol 8 through bh data register read/write data data high x x x x x x x x data low x x x x x x x x data register - used to read or write the data buffer byte/word presently addressed by the pointer register. this register is mapped into two uni-directiona l fifos that allow moving words to and from the lan91c100fd regardless of whether the pointer addr ess is even, odd or dword aligned. data goes through the write fifo into memory, and is pre-fetched from memory into the read fifo. if byte accesses are used, the appropriate (next) byte can be accessed through the data low or data high registers. the order to and from the fifo is preserved. byte, wo rd and dword accesses can be mixed on the fly in any order. this register is mapped into two consecutive word locations to facilitate double word move operations regardless of the actual bus width (16 or 32 bits). t he data register is accessible at any address in the 8 through ah range, while the number of bytes being transferred is determined by a1 and nbe0-nbe3. the fifos are 12 bytes each. bank 2 offset name type symbol c interrupt status register read only ist rx_disc int reserved eph int rx_ovrn int alloc int tx empty int tx int rcv int 0 0 0 0 0 1 0 0
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 35 revision 1.0 (09-22-08) datasheet offset name type symbol c interrupt acknowledge register write only ack rx_disc int reserved rx_ovrn int tx empty int tx int offset name type symbol d interrupt mask register read/write msk rx_disc int reserved eph int rx_ovrn int alloc int tx empty int tx int rcv int 0 0 0 0 0 0 0 0 this register can be read and written as a word or as two individual bytes. the interrupt mask register bits enable the appropriate bits when high and disable them when low. a mask bit being set will cause a hardware interrupt. note : the bit 7 mask must never be written high (1). rx_disc int - set when the nrxdisc pin counter in the rcv register increments to a value of ff. the rx_disc int bit latches the condition for the pu rpose of being polled or generating an interrupt, and will only be cleared by writing the acknowledge register with the rx_disc int bit set. reserved ? must be 0. eph int - set when the ethernet protocol handler se ction indicates one out of various possible special conditions. this bit merges exception type of interrupt sources, whose service time is not critical to the execution speed of the low level drivers. the exact nature of the interrupt can be obtained from the eph status register (ephsr), and enabl ing of these sources can be done via the control register. the possible sources are: 1. link - link test transition 2. ctr_rol - statistics counter roll over 3. txena cleared - a fatal transmit error occurred forcing txena to be cleared. tx_suc will be low and the specific reason will be reflected by the bits: 3.1 sqet - sqe error 3.2 lost carr - lost carrier 3.3 latcol - late collision 3.4 16col - 16 collisions any of the above interrupt sources can be masked by the appropriate enable bits in the control register. 1) le enable (link error enable), 2) cr enable (counter roll over), 3) te enable (transmit error enable) eph int will only be cleared by the following methods: 1. clearing the le enable bit in the control regist er if an eph interrupt is caused by a link_ok transition. 2. reading the counter register if an eph interr upt is caused by statistics counter roll over.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 36 smsc lan91c100fd rev. d datasheet 3. setting txena bit high if an eph interrupt is caused by any of the fatal transmit error listed above (3.1 to 3.5). rx_ovrn int - set when 1) the receiver aborts due to an overrun due to a failed memory allocation, 2) the receiver aborts due to a packet length of greater th an 2k bytes, or 3) the receiver aborts due to the rcv discrd bit in the rcv register set. the rx_ovrn int bit latches the condition for the purpose of being polled or generating an interrupt, and will only be cleared by writing the acknowledge register with the rx_ovrn int bit set. alloc int - set when an mmu request for tx ram page is successful. this bit is the complement of the failed bit in the allocation result register. the alloc int bit is cleared by the mmu when the next allocation request is processed or allocation fails. tx empty int - set if the tx fifo goes empty, can be used to generate a single interrupt at the end of a sequence of packets enqueued for transmission. this bi t latches the empty condition, and the bit will stay set until it is specifically cleared by writing the acknowledge register wi th the tx empty int bit set. if a real time reading of the fifo empty is desired , the bit should be first cleared and then read. the tx empty mask bit should only be set after the following steps: a. a packet is enqueued for transmission b. the previous empty condition is cleared (acknowledged) tx int - set when at least one pa cket transmission was completed or any of the below transmit fatal errors occurs: 1. sqet - sqe error 2. lost carr - lost carrier 3. latcol - late collision 4. 16col - 16 collisions the first packet number to be serviced can be read from the fifo ports register. the tx int bit is always the logic complement of the tempty bit in the fifo ports register. after servicing a packet number, its tx int interrupt is removed by writing th e interrupt acknowledge register with the tx int bit set. rcv int - set when a receive interrupt is generated. the first packet number to be serviced can be read from the fifo ports register. the rcv int bit is alwa ys the logic complement of the rempty bit in the fifo ports register. the receive interrupt is cleared when rx fifo is empty.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 37 revision 1.0 (09-22-08) datasheet figure 5.2 - interrupt structure
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 38 smsc lan91c100fd rev. d datasheet bank3 offset name type symbol 0 through 7 multicast table read/write mt low byte multicast table 0 0 0 0 0 0 0 0 0 high byte multicast table 1 0 0 0 0 0 0 0 0 low byte multicast table 2 0 0 0 0 0 0 0 0 high byte multicast table 3 0 0 0 0 0 0 0 0 low byte multicast table 4 0 0 0 0 0 0 0 0 high byte multicast table 5 0 0 0 0 0 0 0 0 low byte multicast table 6 0 0 0 0 0 0 0 0 high byte multicast table 7 0 0 0 0 0 0 0 0 the 64 bit multicast table is used for group address fi ltering. the hash value is defined as the six most significant bits of the crc of t he destination addresses. the three ms b's determine the register to be used (mt0-mt7), while the other three determine the bit within the register. if the appropriate bit in the table is set, the packet is received. if the almul bit in the rcr register is set, all multicas t addresses are received regardless of the multicast table values. hashing is only a partial group addressing filtering scheme, but being the hash value available as part of the receive status word, the receive routine can reduc e the search time significantly. with the proper memory structure, the search is limited to comparin g only the multicast addresses that have the actual hash value in question. bank 3 offset name type symbol 8 management interface read/write mgmt high byte fltst msk_ crs100 0 0 1 1 0 0 1 1 low byte mdoe mclk mdi mdo 0 0 1 1 0 0 mdi pin 0
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 39 revision 1.0 (09-22-08) datasheet fltst - facilitates the inclusion of packet forwarding in formation on the receive packet memory structure. when 0, rd0-rd7 is always driven. when 1, rd0-rd7 is floated during receive frame status word writes (ra2-ra16=0, rcvdma=1, nrwe0-nrwe3=0). msk_crs100 - disables crs100 detection during transmit in half duplex mode (swfdup=0). mdo - mii management output. the value of this bit drives the mdo pin. mdi - mii management input. the value of the mdi pin is readable using this bit. mdclk - mii management clock. the value of this bit drives the mdclk pin. mdoe - mii management output enable. when high pin mdo is driven, when low pin mdo is tri-stated. the purpose of this interface, along with the corresp onding pins is to implement mii phy management in software. bank 3 offset name type symbol a revision register read only rev high byte 0 0 1 1 0 0 1 1 low byte chip rev 1 0 0 0 0 0 0 0 chip - chip id. can be used by software drivers to identify the device used. rev - revision id. incremented for each revision of a given device. offset name type symbol c rcv register read/write rcv high byte nrxdisc pin counter 0 0 0 0 0 0 0 0 low byte rcv discr d 0 0 mbo mbo mbo mbo mbo 0 0 0 1 1 1 1 1 nrxdisc pin counter - 8-bit counter increments when a packet is discarded due to the nrxdisc pin being active. this counter will be reset to 00 when r ead. a count of ff will set the rx_disc int. the count will wrap around to 00 after ff. rcv discrd - set to discard a packet being received. will discard packets only in the process of being received. when set prior to the end of receive packet, bit 4 (rxovrn) of the interrupt status register will be set to indicate that the packet was discarded. ot herwise, the packet will be received normally and bit 0 set (rcvint) in the interrupt status r egister. rcv discrd is self clearing. mbo ? must be 1.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 40 smsc lan91c100fd rev. d datasheet bank7 offset name type symbol 0 through 7 external registers ncsout is driven low by the lan91c100fd when a valid access to the external register range occurs. high byte external r/w register low byte external r/w register cycle ncsout lan91c100fd data bus aen=0 a3=0 a4-15 matches i/o base bank select = 7 driven low. transparently latched on nads rising edge. ignored on writes. tri-stated on reads. bank select = 4,5,6 high ignore cycle. otherwise high normal lan91c100fd cycle.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 41 revision 1.0 (09-22-08) datasheet 5.2 typical flow of events for transmit (auto release = 0) s/w driver mac side 1 issue allocate memory for tx - n bytes - the mmu attempts to allocate n bytes of ram. 2 wait for successful completion code - poll until the alloc int bit is set or enable its mask bit and wait for the interrupt. the tx packet number is now at the allocation result register. 3 load transmit data - copy the tx packet number into the packet number register. write the pointer register, then use a block move operation from the upper layer transmit queue into the data register. 4 issue "enqueue packet number to tx fifo" - this command writes the number present in the packet number register into the tx fifo. the transmission is now enqueued. no further cpu intervention is needed until a transmit interrupt is generated. 5 the enqueued packet will be transferred to the mac block as a function of txena (ntcr) bit and of the deferral process (1/2 duplex mode only) state. 6 a) upon transmit comple tion the first word in memory is written with the status word. the packet number is moved from the tx fifo into the tx completion fifo. interrupt is generated by the tx completion fifo being not empty. b) if a tx failure occurs on any packets, tx int is generated and txena is cleared, transmission sequence stops. the packet number of the failure packet is presented at the tx fifo ports register. 7 a) service interrupt - read interrupt status register. if it is a transmit interrupt, read the tx fifo packet number from the fifo ports register. write the packet number into the packet number register. the corresponding status word is now readable from memory. if status word shows successful transmission, issue release packet number command to free up the memory used by this packet. remove packet number from completion fifo by writing tx int acknowledge register. b) option 1) release the packet. option 2) check the transmit status in the eph status register, write the packet number of the current packet to the packet number register, re-enable txena, then go to step 4 to start the tx sequence again.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 42 smsc lan91c100fd rev. d datasheet 5.3 typical flow of events for transmit (auto release = 1) s/w driver mac side 1 issue allocate memory for tx - n bytes - the mmu attempts to allocate n bytes of ram. 2 wait for successful completion code - poll until the alloc int bit is set or enable its mask bit and wait for the interrupt. the tx packet number is now at the allocation result register. 3 load transmit data - copy the tx packet number into the packet number register. write the pointer register, then use a block move operation from the upper layer transmit queue into the data register. 4 issue "enqueue packet number to tx fifo" - this command writes the number present in the packet number register into the tx fifo. the transmission is now enqueued. no further cpu intervention is needed until a transmit interrupt is generated. 5 the enqueued packet will be transferred to the mac block as a function of txena (ntcr) bit and of the deferral process (1/2 duplex mode only) state. 6 transmit pages are released by transmit completion. 7 a) the mac generates a txempty interrupt upon a completion of a sequence of enqueued packets. b) if a tx failure occurs on any packets, tx int is generated and txena is cleared, transmission sequence stops. the packet number of the failure packet is presented at the tx fifo ports register. 8 a) service interrupt ? read interrupt status register, exit the interrupt service routine. b) option 1) release the packet. option 2) check the transmit status in the eph status register, write the packet number of the current packet to the packet number register, re-enable txena, then go to step 4 to start the tx sequence again.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 43 revision 1.0 (09-22-08) datasheet 5.4 typical flow of events for receive s/w driver mac side 1 enable reception - by setting the rxen bit. 2 a packet is received with matching address. memory is requested from mmu. a packet number is assigned to it. additional memory is requested if more pages are needed. 3 the internal dma logic generates sequential addresses and writes the receive words into memory. the mmu does the sequential to physical address translation. if overrun, packet is dropped and memory is released. 4 when the end of packet is detected, the status word is placed at the beginning of the receive packet in memory. byte count is placed at the second word. if the crc checks correctly the packet number is written into the rx fifo. the rx fifo, being not empty, causes rcv int (interrupt) to be set. if crc is incorrect the packet memory is released and no interrupt will occur. 5 service interrupt - read the interrupt status register and determine if rcv int is set. the next receive packet is at receive area. (its packet number can be read from the fifo ports register). the software driver can process the packet by accessing the rx area, and can move it out to system memory if desired. when processing is complete the cpu issues the remove and release from top of rx command to have the mmu free up the used memory and packet number.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 44 smsc lan91c100fd rev. d datasheet isr save bank select & address ptr registers mask smc91c100fd interrupts read interrupt register call tx intr or txempty intr tx intr? get next tx rx intr? ye s no no yes call rxintr alloc intr? no yes write allocated pkt # into packet number reg. write ad ptr reg. & copy data & source address enqueue packet packet available for transmission? ye s n o call allocate eph intr? no ye s call eph intr set "ready for packet" flag return buffers to upper layer disable allocation interrupt mask restore address pointer & bank select registers unmask smc91c100fd interrupts exit isr figure 5.3 - interrupt service routine
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 45 revision 1.0 (09-22-08) datasheet rx intr write ad. ptr. reg. & read word 0 from ram destination multicast? read words 2, 3, 4 from ram for address filtering address filtering pass? status word ok? do receive lookahead get copy specs from upper layer okay to copy? copy data per upper layer specs issue "remove and release" command return to isr ye s no ye s no no yes no yes figure 5.4 - rx intr
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 46 smsc lan91c100fd rev. d datasheet figure 5.5 - tx intr write into packet number register tx status ok? tx intr save pkt number register read txdone pkt # from fifo ports reg. immediately issue "release" command a cknowledge txintr read tx int again return to isr no yes read status word from ram update statistics re-enable txena update variables tx int = 0? restore packet number yes no write address pointer register
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 47 revision 1.0 (09-22-08) datasheet figure 5.6 - txempty intr (assumes auto release option selected) txempty intr write acknowledge reg. with txempty bit set read txempty & tx intr acknowledge txintr re-enable txena return to isr issue "release" command restore packet number txempty = 0 & txint = 0 (waiting for completion) txempty = x & txint = 1 (transmission failed) txempty = 1 & txint = 0 (everything went through successfully) read pkt. # register & save write address pointer register read status word from ram update statistics update variables
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 48 smsc lan91c100fd rev. d datasheet figure 5.7 - drive send and allocate routines 5.5 memory partitioning unlike other controllers, the lan9 1c100fd does not require a fixed memory partitioning between transmit and receive resources. the mmu allocates and de-allocates memory upon different events. an additional mechanism allows the cpu to prevent the receive pr ocess from starving the transmit memory allocation. allocate issue "allocate memory" command to mmu read interrupt status register enqueue packet set "ready for packet" flag return copy remaining tx data packet into ram return buffers to upper layer write allocated packet into packet # register write address pointer register copy part of tx data packet into ram write source address into proper location store data buffer pointer clear "ready for packet" flag enable allocation interrupt allocation passed? ye s n o driver send choose bank select register 2 call allocate exit driver send read allocation result register
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 49 revision 1.0 (09-22-08) datasheet memory is always requested by the side that needs to wr ite into it, that is: the cpu for transmit or the mac for receive. the cpu can control the number of bytes it requests for transmit but it cannot determine the number of bytes the receive process is going to dem and. furthermore, the receive process requests will be dependent on network traffic, in particular on the a rrival of broadcast and multicast packets that might not be for the node, and that are not subject to upper layer software flow control. in order to prevent unwanted traffic from usin g too much memory, the cpu can program a "memory reserved for transmit" parame ter. if the free memory falls below the "memory reserved for transmit" value, mmu requests from the mac block will fail and the packets will overrun and be ignored. whenever enough memory is released, packets can be received again. if the reserved value is too large, the node might lose data which is an abnormal condition. if the value is kept at zero, memory allocation is handled on first-come first-served basis for the entire memory capacity. note that with the memory management built into the lan91c100fd, the cpu can dynamically program this parameter. for instance, when the driver does not need to enqueue transmissions, it can allow more memory to be allocated for receive (by reducing the value of the reserved memo ry). whenever the driver needs to burst transmissions it can reduce the receive memory allocation. the driver program the parameter as a function of the following variables: 1. free memory (read only register) 2. memory size (read only register) the reserved memory value can be changed on the fl y. if the memory reserved for tx value is increased above the free memory, receive packets in progress are still received, but no new packets are accepted until the free memory increases above t he memory reserved value. 5.6 interrupt generation the interrupt strategy for the transmit and receive processes is such that it does not represent the bottleneck in the transmit and receive queue management between the software driver and the controller. for that purpose there is no regi ster reading necessary before the next element in the queue (namely transmit or receive packet) can be handled by the cont roller. the transmit and receive results are placed in memory. the receive interrupt will be generated when the receiv e queue (fifo of packets) is not empty and receive interrupts are enabled. this allows the interrupt serv ice routine to process many receive packets without exiting, or one at a time if the isr just returns after processing and removing one. there are two types of transmit interrupt strategies: 1. one interrupt per packet. 2. one interrupt per sequence of packets. the strategy is determined by how the transmit interrupt bits and the auto release bit are used. tx int bit - set whenever the tx completion fifo is not empty. tx empty int bit - set whenever the tx fifo is empty. auto release - when set, successful transmit packets are not written into completion fifo, and their memory is released automatically. 1. one interrupt per packe t: enable tx int, set auto release=0. the software driver can find the completion result in memory and process the interrupt one packet at a time. depending on the completion code the driver will take different actions . note that the transmit process is working in parallel and other transmissions might be taking place. the lan91c100fd is virtually queuing the packet numbers and their status words.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 50 smsc lan91c100fd rev. d datasheet in this case, the transmit interrupt service routin e can find the next packet number to be serviced by reading the tx done packet number at the fifo po rts register. this eliminates the need for the driver to keep a list of packet numbers being trans mitted. the numbers are queued by the lan91c100fd and provided back to the cpu as their transmission completes. 2. one interrupt per sequence of packets: enable tx empty int and tx int, set auto release=1. tx empty int is generated only after transmitting the last packet in the fifo. tx int will be set on a fatal transmit error allowing the cpu to know that the transmit process has stopped and therefore the fi fo will not be emptied. this mode has the advantage of a sm aller cpu overhead, and faster memo ry de-allocation. note that when auto release=1 the cpu is not provid ed with the packet numbers that completed successfully. note: the pointer register is shared by any process ac cessing the lan91c100fd memory. in order to allow processes to be interruptable, the interrupting proce ss is responsible for reading the pointer value before modifying it, saving it, and restoring it before returning from the interrupt. typically there would be three processes using the pointer: 1. transmit loading (sometimes interrupt driven) 2. receive unloading (interrupt driven) 3. transmit status readi ng (interrupt driven). 1) and 3) also share the usage of the packet number register. therefore saving and restoring the pnr is also required from interrupt service routines.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 51 revision 1.0 (09-22-08) datasheet figure 5.8 - interrupt generation for transmit, receive, mmu t x f i f o t x c o m p l e t i o n f i f o r x f i f o c s m a / c d l o g i c a l a d d r e s s p a c k e t # m m u p h y s i c a l a d d r e s s r a m cpu address csma address rx packet number rx fifo packet number packet number register pa c k # o u t m.s. bit only 'empty' 'not empty' tx done packet number 'not empty' interrupt status register rcv int tx empty int tx int alloc int two options
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 52 smsc lan91c100fd rev. d datasheet chapter 6 board setup information the following parameters are obtained from the eeprom as board setup information: ? ethernet individual address ? i/o base address ? 10baset or aui interface ? mii or endec interface ? interrupt line selection all the above mentioned values are read from the eeprom upon hardware reset. except for the individual address, the valu e of the ios switches determines the offset within the eeprom for these parameters, in such a way that many identical boar ds can be plugged into the same system by just changing the ios jumpers. in order to support a software utility based insta llation, even if the eeprom was never programmed, the eeprom can be written using the lan 91c100fd. one of the ios combinat ion is associated with a fixed default value for the key parameters (i/o base, interr upt) that can always be used regardless of the eeprom based value being programmed. this value wi ll be used if all ios pins are left open or pulled high. the eeprom is arranged as a 64 x 16 array. the s pecific target device is the 9346 1024-bit serial eeprom. all eeprom accesses are done in words. all eeprom addresses in the spec are specified as word addresses. register eeprom word address configuration register base register ios value * 4 (ios value * 4) + 1 individual address 20-22 hex if ios2-ios0 = 7, only the indivi dual address is read from the eeprom. currently assigned values are assumed for the other register s. these values are default if the eeprom read operation follows hardware reset. the eeprom select bit is used to determine the type of eeprom operation: a) normal or b) general purpose register. a) normal eeprom operation - eeprom select bit = 0 on eeprom read operations (after reset or a fter setting reload high) the configuration register and base register are updated with the eeprom values at locations defined by the ios2-0 pins. the individual address register s are updated with the values stored in the individual address area of the eeprom. on eeprom write operations (after setting the st ore bit) the values of the configuration register and base register are written in the eeprom locations defined by the ios2-ios0 pins. the three least significant bits of the co ntrol register (eeprom select, reload and store) are used to control the eeprom. their va lues are not stored nor loaded from the eeprom. b) general purpose register - eeprom select bit = 1 on eeprom read operations (after setting reload high) the eeprom word address defined by the pointer register 6 least significant bits is read into the general purpose register.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 53 revision 1.0 (09-22-08) datasheet on eeprom write operations (after setting the st ore bit) the value of the general purpose register is written at the eeprom word addr ess defined by the pointer register 6 least significant bits. reload and store are set by the user to initiate read and write operations respectively. polling the value until read low is used to determine comple tion. when an eeprom a ccess is in progress the store and reload bits of ctr will readback as both bits high. no other bi ts of the lan91c100fd can be read or written until the eeprom operation completes and both bits are clear. this mechanism is also valid fo r reset initiated reloads. note: if no eeprom is connected to t he lan91c100fd, for example for some embedded ap plications, the eneep pin should be grounded and no accesses to the eeprom will be attempted. confi guration, base, and individual address assume their default values upon hardware reset and the cpu is responsible for programming them for their final value.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 54 smsc lan91c100fd rev. d datasheet figure 6.1 - 64 x 16 serial eeprom map configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. ia0-1 ia2-3 ia4-5 ios2-0 word address 000 0h 1h 4h 5h 8h 9h ch dh 10h 11h 14h 15h 18h 19h 20h 21h 22h 001 010 011 100 101 110 xxx 16 bits
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 55 revision 1.0 (09-22-08) datasheet chapter 7 application considerations the lan91c100fd is envisioned to fit a few different bus types. this section describes the basic guidelines, system level implications and sample configurations for the most relevant bus types. all applications are based on buffered architectures with a private sram bus. 7.1 fast ethernet slave adapter slave non-intelligent board implementin g 100 mbps and 10 mbps speeds. adapter requires: a) lan91c100fd chip b) four srams (32k x 8 - 25ns) c) serial eeprom (93c46) d) mbps endec and transceiver chip e) mbps mii compliant phy f) some bus specific glue logic target systems: a) vl local bus 32 bit systems b) high-end isa or non-burst eisa machines c) eisa 32 bit slave 7.2 vl local bus 32 bit systems on vl local bus and other 32 bit embedded systems the lan91c100fd is accessed as a 32 bit peripheral in terms of the bus interface. all registers except the data register will be accessed using byte or word instructions. accesses to the data register could use byte, word, or dword instructions. table 7.1 - vl local bus signal connections vl bus signal lan91c100 signal notes a2-a15 a2-a15 address bus used for i/o space and register decoding, latched by nads rising edge, and transparent on nads low time. m/nio aen qualifies valid i/o decoding - enabled access when low. this signal is latched by nads rising edge and transparent on nads low time. w/nr w/nr direction of access. sampled by the lan91c100fd on first rising clock that has ncycle active. high on writes, low on reads. nrdyrtn nrdyrtn ready return. direct connection to vl bus. nlrdy nsrdy and some logic nsrdy has the appropriate functionality and timing to create the vl nlrdy except that nlrdy behaves like an open drain output most of the time. lclk lclk local bus clock. rising edges used for synchronous bus interface transactions. nreset reset connected via inve rter to the lan91c100fd. nbe0 nbe1 nbe2 nbe3 nbe0 nbe1 nbe2 nbe3 byte enables. latched transparently by nads rising edge.
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 56 smsc lan91c100fd rev. d datasheet vl bus signal lan91c100 signal notes nads nads, ncycle address strobe is connected directly to the vl bus. ncycle is created typically by using nads delayed by one lclk. irqn intr0-intr3 typically uses the interrupt lines on the isa edge connector of vl bus d0-d31 d0-d31 32 bit data bus. the bus byte(s) used to access the device are a function of nbe0-nbe3: nbe0 nbe1 nbe2 nbe3 0 0 0 0 double word access 0 0 1 1 low word access 1 1 0 0 high word access 0 1 1 1 byte 0 access 1 0 1 1 byte 1 access 1 1 0 1 byte 2 access 1 1 1 0 byte 3 access not used = tri-state on reads, ignored on writes. note that nbe2 and nbe3 override the value of a1, which is tied low in this application. nldev nldev nldev is a totem pole output. nldev is active on valid decodes of a15-a4 and aen=0. unused pins vcc nrd nwr gnd a1 nvlbus open ndatacs
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 57 revision 1.0 (09-22-08) datasheet figure 7.1 - lan91c100fd on vl bus w/nr a2-a15 lclk aen reset intr0-intr3 d0-d31 nrdyrtn nbe0-nbe3 nads ncycle nsrdy nldev lan91c100fd w/nr a2-a15 lclk m/nio nreset irqn d0-d31 nrdyrtn nbe0-nbe3 nads nlrdy nldev delay 1 lclk o.c. simulated o.c. vl bus
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 58 smsc lan91c100fd rev. d datasheet 7.3 high end isa or no n-burst eisa machines on isa machines, the lan91c100fd is accessed as a 16 bit peripheral. no support for xt (8 bit peripheral) is provided. the signal connections are listed in the following table: table 7.2 - high-end isa or non-burst eisa machines signal connectors isa bus signal lan91c100fd signal notes a1-a15 a1-a15 address bus used for i/o space and register decoding. aen aen qualifies valid i/o decoding - enabled access when low. niord nrd i/o read strobe - asynchronous read accesses. address is valid before leading edge. niowr nwr i/o write strobe - asynchronous write access. address is valid before leading edge. data is latched on trailing edge. iochrdy ardy this signal is negated on leading nrd, nwr if necessary. it is then asserted on clk rising edge after the access condition is satisfied. reset reset a0 nbe0 nsbhe nbe1 irqn intr0-intr3 d0-d15 d0-d15 16 bit data bus. the bus byte(s) used to access the device are a function of nbe0 and nbe1: nbe0 nbe1 d0-d7 d8-d15 0 0 lower upper 0 1 lower not used 1 0 not used upper not used = tri-state on reads, ignored on writes niocs16 nldev buffered nldev is a totem pole output. must be buffered using an open collector driver. nldev is active on valid decodes of a15-a4 and aen=0. unused pins gnd lclk nads vcc nbe2 nbe3 ncycle w/nr nrdyrtn no upper word access.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 59 revision 1.0 (09-22-08) datasheet figure 7.2 - lan91c100fd on isa bus a1-a15, aen reset nbe2, nbe3 d0-d15 intr0-intr3 nrd nwr nbe0 nbe1 nldev lan91c100fd a1-a15, aen reset vcc d0-d15 nirq niord niowr a0 nsbhe niocs16 o.c. isa bus
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 60 smsc lan91c100fd rev. d datasheet 7.4 eisa 32 bit slaveeisa 32 bit slave on eisa the lan91c100fd is accessed as a 32 bit i/o slave, along with a slave dma type "c" data path option. as an i/o slave, the lan91c100fd uses asynchronous accesses. in creating nrd and nwr inputs, the timing information is externally derived from ncmd edges. given that the access will be at least 1.5 to 2 clocks (more than 180ns at least) there is no need to negate exrdy, simplifying the eisa interface implementation. as a dma slave, the lan91c100fd accepts burst transfers and is able to sustain the peak rate of one doubleword every bclk. doubleword alignment is assumed for dma transfers. up to three extra bytes in the beginning and at the end of the transfer should be moved by the cpu using i/o accesses to the data register. the lan91c100fd will sample exrdy and postpone dma cycles if the memory cycle solicits wait states. table 7.3 - eisa 32 bit slave signal connections eisa bus signal lan91c100fd signal notes la2-la15 a2-a15 address bus used for i/o space and register decoding, latched by nads (nstart) trailing edge. m/nio aen aen qualifies valid i/o decoding - enabled access when low. these signals are externally ored. internally the aen pin is latched by nads rising edge and transparent while nads is low. latched w-r combined with ncmd nrd i/o read strobe - asynchronous read accesses. address is valid before its leading edge. must not be active during dma bursts if dma is supported. latched w-r combined with ncmd nwr i/o write strobe - asynchronous write access. address is valid before leading edge . data latched on trailing edge. must not be active during dma bursts if dma is supported. nstart nads address strobe is connected to eisa nstart. resdrv reset nbe0 nbe1 nbe2 nbe3 nbe0 n be1 nbe2 nbe3 byte enables. latched on nads rising edge. irqn intr0-intr3 interrupts used as active high edge triggered d0-d31 d0-d31 32 bit data bus. the bus byte(s) used to access the device are a function of nbe0-nbe3: nbe0 nbe1 nbe2 nbe3 0 0 0 0 double word access 0 0 1 1 low word access 1 1 0 0 high word access 0 1 1 1 byte 0 access 1 0 1 1 byte 1 access 1 1 0 1 byte 2 access 1 1 1 0 byte 3 access not used = tri-state on reads, ignored on writes. note that nbe2 and nbe3 override the value of a1, which is tied low in this application. other combinations of nbe are not supported by the lan91c100fd. software drivers are not anticipated to generate them.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 61 revision 1.0 (09-22-08) datasheet eisa bus signal lan91c100fd signal notes nex32 nnows (optional additional logic) nldev nldev is a totem pole output. nldev is active on valid decodes of lan91c100fd pins a15-a4, and aen=0. nnows is similar to nldev except that it should go inactive on nstart rising. nnows can be used to request compressed cycles (1.5 bclk long, nrd/nwr will be 1/2 bclk wide). the following signals support slave dma type "c" burst cycles bclk lclk eisa bus clock. data transfer clock for dma bursts. ndak ndatacs dma acknowledge. active during slave dma cycles. used by the lan91c100fd as ndatacs direct access to data path. niorc w/nr indicates the direction and timing of the dma cycles. high during lan91c100fd writes, low during lan91c100fd reads. niowc ncycle indicates slave dma writes. nexrdy nrdyrtn eisa bus signal indicating whether a slave dma cycle will take place on the next bclk rising edge, or should be postponed. nrdyrtn is used as an input in the slave dma mode to bring in exrdy. unused pins vcc nvlbus gnd a1
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 62 smsc lan91c100fd rev. d datasheet figure 7.3 - lan91c100fd on eisa bus a2-a15 reset aen d0-d31 intr0-intr3 nbe0-nbe3 nrd nwr lclk nads nldev lan91c100fd la2-la15 resdrv o.c. eisa bus aen m/nio d0-d31 irqn nbe0-nbe3 latch + gates ncmd nwr bclk nstart nex32
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 63 revision 1.0 (09-22-08) datasheet chapter 8 operational description 8.1 maximum guaranteed ratings* operating temperature range ............................................................................................... 0 e c to +70 e c storage temperatur e range ............................................................................................-55 e c to + 150 e c lead temperature range (sol dering, 10 se conds) ........................................................................... +325 e c positive voltage on any pin, with respect to ground .....................................................................v cc + 0.3v negative voltage on any pin, with respec t to ground ........................................................................... -0.3v maximum v cc ............................................................................................................................... ........... +7v * stresses above those listed above could cause permanent damage to the device. this is a stress rating only and functional operation of the device at any other condition above those indicated in the operation sections of this specification is not implied. note : when powering this device from laboratory or system power supplies, it is important that the absolute maximum ratings not be exceeded or device failure can result. some power supplies exhibit voltage spikes on their outputs when the ac power is switched on or off. in addition, voltage transients on the ac power line may appear on the dc output. if this possib ility exists, it is suggested that a clamp circuit be used. 8.2 dc electrical characteristics (t a = 0 e c - 70 e c, v cc = +5.0 v 10%) parameter symbol min typ max units comments i type input buffer low input level high input level v ili v ihi 2.0 0.8 v v ttl levels is type input buffer low input level high input level schmitt trigger hysteresis v ilis v ihis v hys 2.2 250 0.8 v v mv schmitt trigger schmitt trigger i clk input buffer low input level high input level v ilck v ihck 3.0 0.4 v v
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 64 smsc lan91c100fd rev. d datasheet parameter symbol min typ max units comments input leakage (all i and is buffers except pins with pullups/pulldowns) low input leakage high input leakage i il i ih -10 -10 +10 +10 a a v in = 0 v in = v cc ip type buffers input current i il -150 -75 ma v in = 0 id type buffers input current i ih +75 +150 ma v in = v cc o4 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 4 ma i oh = -2 ma v in = 0 to v cc i/o4 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v a i ol = 4 ma i oh = -2 ma v in = 0 to v cc o12 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v a i ol = 12 ma i oh = -6 ma v in = 0 to v cc o16 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v a i ol = 16 ma i oh = -8 ma v in = 0 to v cc od16 type buffer low output level output leakage v ol i ol -10 0.5 +10 v a i ol = 16 ma v in = 0 to v cc
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 65 revision 1.0 (09-22-08) datasheet parameter symbol min typ max units comments o24 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v a i ol = 24 ma i oh = -12 ma v in = 0 to v cc i/o24 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v a i ol = 24 ma i oh = -12 ma v in = 0 to v cc supply current active i cc 25 40 ma all outputs open capacitance t a = 25 e c; fc = 1mhz; v cc = 5v limits parameter symbol min typ max unit test condition clock input capacitance c in 20 pf all pins except pin under test tied to ac ground input capacitance c in 10 pf output capacitance c out 20 pf capacitive load on outputs nardy, d0-d31 (non vlbus) 240 pf d0-d31 in vlbus 45 pf all other outputs 45 pf
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 66 smsc lan91c100fd rev. d datasheet chapter 9 timing diagrams figure 9.1 - asynchronous cycle - nads=0 parameter min typ max units t1 a1-a15, aen, nbe0-nbe3 valid and nads low setup to nrd, nwr active 25 ns t2 a1-a15, aen, nbe0-nbe3 hold after nrd, nwr inactive (assuming nads tied low) 20 ns t3 nrd low to valid data 40 ns t4 nrd high to data floating 30 ns t5 data setup to nwr inactive 30 ns t5a data hold after nwr inactive 5 ns t5 t2 t3 t4 t1 t5a a1-15, aen, nbe0-nbe3 valid d0-d31 valid address nads read data nrd,nwr write data
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 67 revision 1.0 (09-22-08) datasheet figure 9.2 - asynchronous cycle - using nads parameter min typ max units t1 a1-a15, aen, nbe0-nbe3 valid and nads low setup to nrd, nwr active 25 ns t3 nrd low to valid data 40 ns t4 nrd high to data floating 30 ns t5 data setup to nwr inactive 30 ns t5a data hold after nwr inactive 5 ns t8 a1-a15, aen, nbe0-nbe3 setup to nads rising 10 ns t9 a1-a15, aen, nbe0-nbe3 hold after nads rising 15 ns t8 t9 t5 t3 t4 t1 t5a a1-a15, aen, nbe0-nbe3 valid d0-d31 valid address nads read data nrd, nwr write data
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 68 smsc lan91c100fd rev. d datasheet figure 9.3 - asynchronous cycle - nads=0 (ndatacs used to select data register; must be 32 bit access) parameter min typ max units t1 a1-a15, aen, nbe0-nbe3 valid and nads low setup to nrd, nwr active 25 ns t2 a1-a15, aen, nbe0-nbe3 hold after nrd, nwr inactive (assuming nads tied low) 20 ns t3 nrd low to valid data 40 ns t4 nrd high to data floating 30 ns t5 data setup to nwr inactive 30 ns t5a data hold after nwr inactive 5 ns t5 t2 t3 t4 t1 t5a d0-d31 valid ndatacs nads read data nrd, nwr wri te data
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 69 revision 1.0 (09-22-08) datasheet figure 9.4 - burst write cycles - nvlbus=1 parameter min typ max units t12 ndatacs setup to either ncycle or w/nr falling 60 ns t13 ndatacs hold after either ncycle or w/nr rising 30 ns t14 nrdyrtn setup to lclk falling 15 ns t15 nrdyrtn hold after lclk falling 2 ns t17 ncycle high and w/nr high overlap 50 ns t18 data setup to lclk rising (write) 13 ns t20 data hold from lclk rising (write) 5 ns t12 t18 t20 t14 t15 t13 t17 t17 a b c lclk ndatacs w/nr ncycle write data nrdyrtn
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 70 smsc lan91c100fd rev. d datasheet figure 9.5 - burst read cycles - nvlbus=1 parameter min typ max units t12 ndatacs setup to either ncycle or w/nr falling 60 ns t13 ndatacs hold after either ncycle or w/nr rising 30 ns t14 nrdyrtn setup to lclk falling 15 ns t15 nrdyrtn hold after lclk falling 2 ns t17 ncycle high and w/nr high overlap 50 ns t19 data delay from lclk rising (read) 5 (note 9.1) 38 (note 9.2) ns note 9.1 (holdt.) note 9.2 (setupt.) t12 t14 t15 t13 t17 t19 t17 c ab lclk ndatacs w/nr read data nrdyrtn ncycle
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 71 revision 1.0 (09-22-08) datasheet figure 9.6 - address latching for all modes parameter min typ max units t8 a1-a15, aen, nbe0-nbe3 setup to nads rising 10 ns t9 a1-a15, aen, nbe0-nbe3 hold after nads rising 15 ns t25 a4-a15, aen to nldev delay 20 ns figure 9.7 - synchronous write cycles - nvlbus=0 parameter min typ max units t8 a1-a15, aen, nbe0-nbe3 setup to nads rising 10 ns t9 a1-a15, aen, nbe0-nbe3 hold after nads rising 15 ns t10 ncycle setup to lclk rising 7 ns t11 ncycle hold after lclk rising (non-burst mode) 3 ns t16 w/nr setup to ncycle active 30 ns t17a w/nr hold after lclk rising with nlrdy active 5 ns t18 data setup to lclk rising (write) 13 ns t20 data hold from lclk rising (write) 5 ns t21 nlrdy delay from lclk rising 10 ns t8 t9 t25 a1-a15, aen, nbe0-nbe3 nads address nldev t18 t20 t10 t11 t17a t9 t8 t16 t21 t21 d0-d31 valid a1-a15, aen, nbe0-nbe3 lclk w/nr address nads ncycle write data nsrdy ndatacs
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 72 smsc lan91c100fd rev. d datasheet figure 9.8 - synchronous read cycle - nvlbus=0 parameter min typ max units t8 a1-a15, aen, nbe0-nbe3 setup to nads rising 10 ns t9 a1-a15, aen, nbe0-nbe3 hold after nads rising 15 ns t10 ncycle setup to lclk rising 7 ns t11 ncycle hold after lclk rising (non-burst mode) 3 ns t16 w/nr setup to ncycle active 30 ns t20 data hold from lclk rising (read) 5 ns t21 nlrdy delay from lclk rising 10 ns t23 nrdyrtn setup to lclk rising 7 ns t24 nrdyrtn hold after lclk rising 3 ns t23 t24 t10 t11 t9 t8 t16 t21 t21 d0-d31 a 1-a15, aen, nbe0-nbe3 lclk w/nr a ddres nads ncycl read nsrd rdyrt ndatac
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 73 revision 1.0 (09-22-08) datasheet figure 9.9 - sram interface parameter min typ max units t34 write ? ra2-ra16 setup to nrwe0-nrwe3 falling 0 ns t35 write ? ra2-ra16 hold after nrwe0-nrwe3 rising 0 ns t36 write ? rd0-rd31 setup to nrwe0-nrwe3 rising 12 ns t37 write ? rd0-rd31 hold after nrwe0-nrwe3 rising 0 ns t39 write ? nrwe0-nrwe3 pulse width 15 ns t54 write ? ra2-ra16 valid to end of write 12 ns t38 read ? ra2-ra16 valid to rd0-rd31 valid 15 ns t51 read ? rd0-rd31 hold after ra2-ra16 change 3 ns t53 t52 t37 t36 t39 t39 t50 t35 t54 t50 t34 t50 t51 t50 t38 read cycle write cycle ra2-ra16 nrwe0-nrwe3 nroe rd0-rd31 t52 t38 t51 t38 t50 t51 t38 t50 t51 t38 multiple read cycles ra2-ra16 nrwe0-nrwe3 nroe rd0-rd31 t53 t52 t37 t36 t39 t39 t50 t51 t50 t38 t50 t35 t54 t50 t34 read cycle write cycle ra2-ra16 nrwe0-nrwe3 nroe rd0-rd31
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 74 smsc lan91c100fd rev. d datasheet parameter min typ max units t52 read ? nroe enable to rd0-rd31 valid 12 ns t53 read ? nroe disable to rd0-rd31 invalid 0 8 ns t50 read/write ? cycle time 25 ns figure 9.10 - endec interface - 10 mbps parameter min typ max units t30 txd, txen delay from txc rising 0 40 ns t31 rxd setup to rxc rising 10 ns t32 rxd hold after rxc rising 30 ns notes : 1. crs input might be asynchronous to rxc. 2. rxc starts after crs goes active. rxc stops after crs goes inactive. 3. col is an asynchronous input. t31 t30 t30 t30 t32 txc txen txd rxd rxc crs
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 75 revision 1.0 (09-22-08) datasheet figure 9.11 - mii interface parameter min typ max units t27 txd0-txd3, txen100 delay from tx25 rising 0 15 ns t28 rxd0-rxd3, rx_dv, rx_er setup to rx25 rising 10 ns t29 rxd0-rxd3, rx_dv, rx_er hold after rx25 rising 10 ns t28 t28 t28 t27 t27 t29 t29 txd0-txd3 txen100 rxd0-rxd3 rx25 rx_dv rx_er
feast fast ethernet controller with full duplex capability revision 1.0 (09-22-08) page 76 smsc lan91c100fd rev. d datasheet chapter 10 package outlines figure 10.1 - 208 pin qfp package outline table 10.1 - 208 pin qfp package parameters min nominal max remark a ~ ~ 4.07 overall package height a1 0.05 ~ 0.5 standoff a2 3.17 ~ 3.67 body thickness d 30.35 ~ 30.85 x span d1 27.90 ~ 28.10 x body size e 30.35 ~ 30.85 y span e1 27.90 ~ 28.10 y body size h 0.09 ~ 0.20 lead frame thickness l 0.45 0.60 0.75 lead foot length l1 ~ 1.30 ~ lead length e 0.50 basic lead pitch 0 o ~ 7 o lead foot angle w 0.10 ~ 0.30 lead width r1 0.08 ~ ~ lead shoulder radius r2 0.08 ~ 0.25 lead foot radius ccc ~ ~ 0.08 coplanarity notes: 1. controlling unit: millimeter. 2. tolerance on the true position of the leads is 0.04 mm maximum. 3. package body dimensions d1 and e1 do not include the mold protrusion. maximum mold protrusion is 0.25 mm. 4. dimension for foot length l measured at the gauge plane 0.25 mm above the seating plane. 5. details of pin 1 identifier are optional but must be located within the zone indicated.
feast fast ethernet controll er with full duplex capability smsc lan91c100fd rev. d page 77 revision 1.0 (09-22-08) datasheet figure 10.2 - 208 pin tqfp package outlines table 10.2 - 208 pin tqfp package outlines min nominal max remark a ~ ~ 1.60 overall package height a1 0.05 ~ 0.15 standoff a2 1.35 ~ 1.45 body thickness d 29.80 ~ 30.20 x span d1 27.90 ~ 28.10 x body size e 29.80 ~ 30.20 y span e1 27.90 ~ 28.10 y body size h 0.09 ~ 0.23 lead frame thickness l 0.45 0.60 0.75 lead foot length l1 ~ 1.00 ~ lead length e 0.50 basic lead pitch 0 o ~ 7 o lead foot angle w 0.17 0.22 0.27 lead width r1 0.08 ~ ~ lead shoulder radius r2 0.08 ~ 0.20 lead foot radius ccc ~ ~ 0.08 coplanarity notes: 1. controlling unit: millimeter. 2. tolerance on the true position of the leads is 0.04 mm maximum. 3. package body dimensions d1 and e1 do not include the mold protrusion. maximum mold protrusion is 0.25 mm. 4. dimension for foot length l measured at the gauge plane 0.25 mm above the seating plane. 5. details of pin 1 identifier are optional but must be located within the zone indicated.


▲Up To Search▲   

 
Price & Availability of LAN91C100FD-ST

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X